1 {% extends
"base.html" %}
3 {% load object_permission_tags %}
8 <link rel=
"stylesheet" type=
"text/css" href=
"{{MEDIA_URL}}/css/content.css"/>
9 <link rel=
"stylesheet" type=
"text/css" href=
"{{MEDIA_URL}}/css/jquery-ui.css"/>
11 <!-- Include Javascript -->
12 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/jquery.js">
14 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/jquery-ui.min.js">
16 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/jquery.qtip.js">
18 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/ajax_csrf_protection.js">
20 <script type=
"text/javascript" src=
"{{MEDIA_URL}}/js/autocomplete_search.js">
23 <script type=
"text/javascript">
27 // initialize the autocomplete search box
28 autocomplete_search($('#search_box'), $('#search_form'),
29 '{% url search-suggestions %}',
30 '{% url search-detail-lookup %}');
35 {% block inner_header %}
36 {% ifnotequal LANGUAGES|length
1 %}|{% endifnotequal %}
38 {% trans
"You are logged in as" %}
<a href=
"{% url profile %}">
39 {{user.username}}
</a>,
41 <a href=
"{% url logout %}">{% trans
"Logout" %}
</a>
44 {% block navigation %}
45 {% if user.is_authenticated %}
46 <div id=
"mainmenu" class=
"menu">
49 <a href=
"{% url overview %}">
50 {% trans
"Overview" %}
56 <a href=
"{% url cluster-list %}">
57 {% trans
"Clusters" %}
63 <a href=
"{% url virtualmachine-list %}">
64 {% trans
"Virtual Machines" %}
67 {% if user.is_superuser or cluster_admin or create_vm %}
69 <a href=
"{% url instance-create %}">
70 {% trans
"Create VM" %}
76 {% with user|group_admin as group_admin %}
77 {% if user.is_superuser or group_admin or cluster_admin %}
78 <h3>{% trans
"Admin" %}
</h3>
80 {% if user.is_superuser or cluster_admin %}
82 <a href=
"{% url import-orphans %}">
83 {% trans
"Orphan VMs" %}
87 <a href=
"{% url import-missing_db %}">
88 {% trans
"Import VMs" %}
92 <a href=
"{% url import-missing %}">
93 {% trans
"Missing VMs" %}
97 <a href=
"{% url import-nodes-missing_db %}">
98 {% trans
"Import Nodes" %}
102 <a href=
"{% url import-nodes-missing %}">
103 {% trans
"Missing Nodes" %}
108 {% if user.is_superuser %}
110 <a href=
"{% url user-list %}">
116 {% if user.is_superuser or group_admin %}
118 <a href=
"{% url group-list %}">
127 <!-- autocomplete search box -->
128 <h3>{% trans
"Search" %}
</h3>
129 <form id=
"search_form" action=
"{% url search %}" method=
"get">
130 <input id=
"search_box" type=
"text" name=
"q" />