summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/_header.html
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
committergnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
commit7a4f561e851fdc7246d804c3abb6748b8a4199a6 (patch)
treed2afc3463fd49625a9be482012f5c3bfcf7c42b9 /gstudio/templates/gstudio/_header.html
downloadgnowsys-7a4f561e851fdc7246d804c3abb6748b8a4199a6.tar.gz
master trunk of gnowsys-studio
Diffstat (limited to 'gstudio/templates/gstudio/_header.html')
-rw-r--r--gstudio/templates/gstudio/_header.html79
1 files changed, 79 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html
new file mode 100644
index 0000000..5106179
--- /dev/null
+++ b/gstudio/templates/gstudio/_header.html
@@ -0,0 +1,79 @@
+{% load i18n grp_tags %}
+
+<div id="header">
+
+ <div class="branding">&nbsp; Gnowledge Studio </div>
+
+ <!-- Title -->
+ <div class="admin-title"> {% if grappelli_admin_title %}{{
+ grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %}
+ | <a href="/">Home</a>
+ | <a href="{{ get_absolute_url }}/objects">objects</a>
+ {% if user.is_authenticated %}
+ {% if user.is_staff%}
+ | <a href="{{ get_absolute_url }}/admin">Admin Dashboard</a>
+ {% else %}
+ | <a href="{{ get_absolute_url }}/gstudio/userdashboard">My Dashboard</a>
+ {% endif %}
+ {% endif %}
+
+
+ </div>
+
+ {% if user.is_authenticated %}
+ <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 -->
+ <li><a href="{{get_absoulute_url}}/accounts/logout/">
+ {% 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 %}
+ <li><a href="http://github.com/gnowgi/django-gstudio">Code</a></li>
+ {% endblock %}
+ </ul>
+ {% else %}
+ <ul id="user-tools">
+ <li><a href="{{root_path}}/accounts/login">{% trans 'Login' %}</a></li>
+ <li>Not registered ? <a href="{{root_path}}/accounts/register">{% trans 'Register' %}</a></li>
+ </ul>
+
+
+
+
+ {% endif %}
+ {% block nav-global %}
+ {% endblock %}
+</div>
+
+<script type="text/javascript" charset="utf-8">
+ (function($) {
+ $(document).ready(function() {
+ $("div#header .collapse").grp_collapsible();
+ });
+ })(django.jQuery);
+</script>
+