Merge branch 'bug/13917' into release/0.10.2
[ganeti_webmgr.git] / ganeti_web / templates / menu_base.html
blobb56825a7c7867ae720c25c3c1da58e491ae6f69c
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load shots %}
5 {% block basehead %}
6 <!-- Include CSS -->
7 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/jquery-ui.css"/>
8 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/content.css"/>
10 <!-- Make main column line up with background when not showing main menu -->
11 {% if not user.is_authenticated %}
12 <style type="text/css"> #content-wrapper{padding-left:140px} </style>
13 {% endif %}
15 <!-- Include Javascript -->
16 <script type="text/javascript" src="{{STATIC_URL}}/js/jquery-ui.min.js"></script>
17 <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.qtip.js"></script>
18 <script type="text/javascript" src="{{STATIC_URL}}/js/ajax_csrf_protection.js"></script>
19 {% endblock %}
21 {% block inner_header %}
22 {% ifnotequal LANGUAGES|length 1 %}|{% endifnotequal %}
23 {% if user.is_authenticated %}
24 {% trans "You are logged in as" %} <a href="{% url profile %}">
25 {{user.username}}</a>,
26 <a href="{% url logout %}">{% trans "Logout" %}</a>
27 {% else %}
28 <a href="{% url login %}">{% trans "Login" %}</a>
29 {% endif %}
30 {% endblock %}
32 {% block navigation %}
33 {% if user.is_authenticated %}
34 <div id="mainmenu" class="menu">
35 <ul>
36 <li><a href="{% url index %}">{% trans "Overview" %}</a></li>
37 {% shot main_menu %}{% endshot %}
38 {% if user.is_superuser %}
39 <li><h3>{% trans "Admin" %}</h3></li>
40 {% shot admin_menu %}{% endshot %}
41 <li><a href="{% url user-list %}">{% trans "Users" %}</a></li>
42 <li><a href="{% url group-list %}">{% trans "Groups" %}</a></li>
43 {% endif %}
44 </ul>
45 </div>
47 {% endif %}
48 {% endblock %}