diff options
author | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
commit | c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c (patch) | |
tree | 2fc44ca867839d5e591e21467b6e4526f7a9f080 /lib/grappelli/templates/admin/includes_grappelli | |
parent | ed77da873e675f02f12cbab9be27f342f825444b (diff) |
added grappelli, filebrowser, chunks and tagging to lcal repo
Diffstat (limited to 'lib/grappelli/templates/admin/includes_grappelli')
-rw-r--r-- | lib/grappelli/templates/admin/includes_grappelli/header.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin/includes_grappelli/header.html b/lib/grappelli/templates/admin/includes_grappelli/header.html new file mode 100644 index 0000000..77a0ad9 --- /dev/null +++ b/lib/grappelli/templates/admin/includes_grappelli/header.html @@ -0,0 +1,46 @@ +{% load i18n grp_tags %} + +<div id="header"> + <div class="branding"> </div> + <!-- Title --> + <div class="admin-title">{% if grappelli_admin_title %}{{ grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %}</div> + {% if user.is_authenticated and user.is_staff %} + <ul id="user-tools"> + <!-- Username --> + <li class="user-options-container collapse closed"> + <a href="javascript://" class="user-options-handler collapse-handler">{% firstof user.first_name user.username %}</a> + <ul class="user-options"> + <!-- Change Password --> + {% url admin:password_change as password_change_url %} + {% if password_change_url %} + <li><a href="{{ password_change_url }}"> + {% else %} + <li><a href="{{ root_path }}password_change/"> + {% endif %} + {% trans 'Change password' %}</a></li> + <!-- Logout --> + {% url admin:logout as logout_url %} + {% if logout_url %} + <li><a href="{{ logout_url }}"> + {% else %} + <li><a href="{{ root_path }}logout/"> + {% endif %} + {% trans 'Log out' %}</a></li> + </ul> + </li> + <!-- Userlinks --> + {% block userlinks %} + <!-- JS tests --> + {% url test-index as testindexurl %} + {% if testindexurl %} + <li><a href="{{ testindexurl }}">{% trans 'Tests' %}</a></li> + {% endif %} + <!-- Documentation --> + {% url django-admindocs-docroot as docsroot %} + {% if docsroot %} + <li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li> + {% endif %} + {% endblock %} + </ul> + {% endif %} +</div> |