Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show fiber version in df sidebar

  • Loading branch information...
commit d5e861ea1fc934d1dd9e85ba970af1573c9cfb31 1 parent 1e2a2f2
Niels van Dijk authored
View
14 fiber/static/fiber/css/admin.css
@@ -138,6 +138,20 @@ div.ui-dialog form label,
background: transparent url("Aristo-jQuery-UI-Theme/css/Aristo/images/ui-icons_222222_256x240.png") -2px -62px no-repeat;
}
+#df-sidebar #df-sidebar-version {
+ position: absolute;
+ bottom: 0;
+ border-top: 1px solid #ddd;
+ padding: 0 0 0 21px;
+ width: 209px;
+}
+
+#df-sidebar #df-sidebar-version p {
+ margin: 0;
+ font-size: 10px;
+ color: #666;
+}
+
/* prevent margin collapsing in admin */
.content[data-fiber-data]:after {
content: ".";
View
3  fiber/templates/fiber/admin.html
@@ -21,10 +21,11 @@
<h2>{% trans "Content" %}</h2>
<div id="df-sidebar-content-tree" class="sidebar-tree"></div>
</div>
+ <div id="df-sidebar-version"><p>Django Fiber: {% fiber_version %}</p></div>
</div>
<div id="df-btn-toggle-sidebar"></div>
</div>
<div id="df-wpr-busy">
<div id="df-busy"></div>
-</div>
+</div>
View
7 fiber/templatetags/fiber_tags.py
@@ -3,6 +3,8 @@
from django import template
from django.utils import simplejson
+from fiber import __version__ as fiber_version
+
from fiber.models import Page, ContentItem
from fiber.utils.urls import get_admin_change_url
@@ -252,3 +254,8 @@ def escape_json_for_html(value):
@register.filter
def can_edit(obj, user):
return PERMISSIONS.can_edit(user, obj)
+
+
+@register.simple_tag(name='fiber_version')
+def show_fiber_version():
+ return fiber_version
Please sign in to comment.
Something went wrong with that request. Please try again.