summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/_header.html
blob: 1a5de3286a23d3460e40a8373283b3896ec1bb22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% load i18n grp_tags %}


<div id="header">

    <div class="branding">&nbsp;  Gnowledge Studio  </div>

    <!-- Title -->
    <div class="admin-title">  
	<a href="/" title="Home">Home</a> 
	 <!-- |    {% if grappelli_admin_title %}{{
      grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %}
  -->
<!--    | <a href="{{ get_absolute_url }}/objects" title="Objects">Objects</a>-->

    {% if user.is_authenticated %}
	{% if user.is_staff %}
        | <a href="{{  get_absolute_url }}/gstudio/user/{{user.username}}" title="My Loom Studio">Loom Studio</a>
	| <a href="{{  get_absolute_url }}/gstudio/resources/documents" title="My Documents">Documents</a>
        | <a href="{{  get_absolute_url }}/gstudio/user/wikipage/{{user.username}}" title="MyWiki">Wikipage</a>
        | <a href="{{  get_absolute_url }}/gstudio/resources/images" title="Images">Images</a>
        | <a href="{{  get_absolute_url }}/gstudio/resources/videos" title="My Videos">Videos</a>
        | <a href="{{  get_absolute_url }}/admin" title="Admin Dashboard">Admin 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" title="{% firstof user.first_name user.username %}">{% 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 }}" title="Change Password">
                    {% else %}
                        <li><a href="{{ root_path }}password_change/">
                    {% endif %}
                    {% trans 'Change password' %}</a></li>
                    <!-- Logout -->
		    <li><a href="{{get_absoulute_url}}/accounts/logout/" title="Log out">
                    {% trans 'Log out' %}</a></li>

                </ul>
            </li>
            <!-- Userlinks -->
            {% block userlinks %}
                <!-- JS tests -->
                {% url test-index as testindexurl %}
                {% if testindexurl %}
                    <li><a href="{{ testindexurl }}" title="Tests">{% trans 'Tests' %}</a></li>
                {% endif %}
                <!-- Documentation -->
                {% url django-admindocs-docroot as docsroot %}
                {% if docsroot %}
                    <li><a href="{{ docsroot }}" title="Documentation">{% trans 'Documentation' %}</a></li>
                {% endif %}
                <li><a href="http://github.com/gnowgi/django-gstudio" title="Code">Code</a></li>
            {% endblock %}
        </ul>
    {% else %}
        <ul id="user-tools">
	  <li><a href="{{root_path}}/accounts/login" title="Login">{% trans 'Login' %}</a></li>
	  <li>Not registered ? <a href="{{root_path}}/accounts/register" title="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>