5899e5929b348681d43395963f558b6cd4109ba5
[htsworkflow.git] / htsworkflow / frontend / templates / base.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
3 <head>
4 <title>{% block title %}{% endblock %}</title>
5 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />
6 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
7 {% block extrastyle %}{% endblock %}
8 {% block extrahead %}{% endblock %}
9 {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
10 </head>
11 {% load i18n %}
12
13 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
14
15 <!-- Container -->
16 <div id="container">
17
18     {% if not is_popup %}
19     <!-- Header -->
20     <div id="header">
21         <div id="branding">
22         {% block branding %}{% endblock %}
23         </div>
24         {% if user.is_authenticated and user.is_staff %}
25         <div id="user-tools">{% trans 'Welcome,' %} <strong>{% firstof user.first_name user.username %}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %} 
26         </div>
27         {% endif %}
28         {% block nav-global %}{% endblock %}
29     </div>
30     <!-- END Header -->
31     {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
32     {% endif %}
33
34         {% if messages %}
35         <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul>
36         {% endif %}
37
38     <!-- Content -->
39     <div id="content" class="{% block coltype %}colM{% endblock %}">
40         {% block pretitle %}{% endblock %}
41         {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
42         {% block content %}
43         {% block object-tools %}{% endblock %}
44         {{ content }}
45         {% endblock %}
46         {% block sidebar %}{% endblock %}
47         <br class="clear" />
48     </div>
49     <!-- END Content -->
50
51     {% block footer %}<div id="footer"></div>{% endblock %}
52 </div>
53 <!-- END Container -->
54
55 </body>
56 </html>