1 {% extends
"base.html" %}
3 {% load object_permission_tags %}
8 <link rel=
"stylesheet" type=
"text/css" href=
"{{MEDIA_URL}}/css/content.css"/>
10 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/jquery.qtip.js"></script>
11 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/ajax_csrf_protection.js"></script>
14 {% block inner_header %}
15 {% ifnotequal LANGUAGES|length
1 %}|{% endifnotequal %}
16 {% trans
"You are logged in as" %}
<a href=
"{% url profile %}">{{user.username}}
</a>,
17 <a href=
"{% url logout %}">{% trans
"Logout" %}
</a>
20 {% block navigation %}
21 {% if user.is_authenticated %}
22 <div id=
"mainmenu" class=
"menu">
24 <li><a href=
"{% url overview %}">{% trans
"Overview" %}
</a></li>
26 <li><a href=
"{% url cluster-list %}">{% trans
"Clusters" %}
</a></li>
28 <li><a href=
"{% url virtualmachine-list %}">{% trans
"Virtual Machines" %}
</a></li>
29 {% if user.is_superuser or cluster_admin or create_vm %}
30 <li><a href=
"{% url instance-create %}">{% trans
"Create VM" %}
</a></li>
33 {% with user|group_admin as group_admin %}
34 {% if user.is_superuser or group_admin or cluster_admin %}
35 <h3>{% trans
"Admin" %}
</h3>
37 {% if user.is_superuser or cluster_admin %}
38 <li><a href=
"{% url import-orphans %}">{% trans
"Orphan VMs" %}
</a></li>
39 <li><a href=
"{% url import-missing_db %}">{% trans
"Import VMs" %}
</a></li>
40 <li><a href=
"{% url import-missing %}">{% trans
"Missing VMs" %}
</a></li>
41 <li><a href=
"{% url import-nodes-missing_db %}">{% trans
"Import Nodes" %}
</a></li>
42 <li><a href=
"{% url import-nodes-missing %}">{% trans
"Missing Nodes" %}
</a></li>
44 {% if user.is_superuser %}
45 <li><a href=
"{% url user-list %}">{% trans
"Users" %}
</a></li>
47 {% if user.is_superuser or group_admin %}
48 <li><a href=
"{% url group-list %}">{% trans
"Groups" %}
</a></li>