Move default template for tables out of template into table base class
[ganeti_webmgr.git] / ganeti_web / templates / base.html
blob15df1527b8c7224b14701e81d9582cbb00b84728
1 {% load i18n %}
2 <html>
3 <head>
4 <title>{% block title %}Ganeti Web Manager{% endblock %}</title>
5 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/base.css"/>
6 <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.js"></script>
7 <script type="text/javascript">
8 function requireOnce(url) {
9 if (!$("script[src='" + url + "']").length) {
10 $('head').append("<script type='text/javascript' src='" + url + "'><//script>");
13 </script>
14 {% ifnotequal LANGUAGES|length 1 %}
15 <script type="text/javascript" src="{{STATIC_URL}}/js/L18N.js"></script>
16 {% endifnotequal %}
17 {% block basehead %}{% endblock %}
18 {% block head %}{% endblock %}
19 </head>
20 <body>
22 <div id="body_wrapper">
23 <div id="header_strip"></div>
24 <div id="header">
25 <a href="/" id="logo"><img src="{{STATIC_URL}}/logo.png"/></a>
26 {% if LANGUAGES|length >= 2 or user.is_authenticated %}
27 <div id="user_menu">
28 {% ifnotequal LANGUAGES|length 1 %}<span id="language">{{ LANGUAGE_CODE }} &#9660;</span>{% endifnotequal %}
29 {% block inner_header %}{% endblock %}
30 {% ifnotequal LANGUAGES|length 1 %}
31 <ul id="languages">
32 {% for lang in LANGUAGES %}
33 <li><a class="select_lang" href="#" title="{{lang.1}}" {% ifequal LANGUAGE_CODE lang.0 %}class="current"{% endifequal %}>{{ lang.0 }}</a></li>
34 {% endfor %}
35 <form action="/i18n/setlang/" method="post" id="langform">
36 {% csrf_token %}
37 <input id="langsel" name="language" type="hidden" value="" />
38 </form>
39 <div class="floatfix"></div>
40 </ul>
41 {% endifnotequal %}
42 </div>
43 {% endif %}
44 </div>
45 <div id="content_wrapper">
46 <div id="content_column">
47 {% block navigation %}{% endblock %}
48 <div id="content">
49 {% block content %}{% endblock %}
50 </div>
51 <div class="floatfix"></div>
52 </div>
53 </div>
54 </div>
55 <div id="footer">
56 <p><a href="{{ SITE_ROOT }}/about">About Ganeti Web Manager</a></p>
57 </div>
58 </body>
59 </html>