Update templates to consistently use {% static %} instead of hard coding paths
[htsworkflow.git] / htsworkflow / frontend / templates / base.html
1 {% load i18n %}<?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
3     "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"
5       version="XHTML+RDFa 1.0"
6       xmlns:xml="http://www.w3.org/XML/1998/namespace"
7       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8       xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
9       xmlns:dc="http://purl.org/dc/elements/1.1/"
10       xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
11       xmlns:libns="http://jumpgate.caltech.edu/wiki/LibraryOntology#"
12       xmlns:invns="http://jumpgate.caltech.edu/wiki/InventoryOntology#"
13       xml:lang="en"
14 >
15 <!--base.html-->
16 <head>
17     <title>{% block title %}{{ app_name }} - {{ page_name }}{% endblock %}</title>
18
19 {% block additional_css %}
20     {% load staticfiles %}
21     {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "css/rtl.css" %}{% endblock %}" />{% endif %}
22     {% block extrastyle %}{% endblock %}
23     {% block extrahead %}{% endblock %}
24     {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
25     <link rel="stylesheet" type="text/css" href="{% static "css/data-browse-index.css" %}" />
26 {% endblock %}
27
28 </head>
29 <body>
30 <!-- Container -->
31     {% if not is_popup %}
32
33     <div id="header">
34         <div id="branding">
35         {% block branding %}{% endblock %}
36         </div>
37         <div id="user-tools">
38         {% if user.is_authenticated %}
39         {% trans 'Welcome,' %}
40         <strong>{% firstof user.first_name user.username %}</strong>.
41         {% block userlinks %}
42             {% url "django.admindocs.docroot" as docsroot %}
43             {% if docsroot %}
44                 <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
45             {% endif %}
46             <a href="{{root_path}}/accounts/password_change/">{% trans 'Change password' %}</a> /
47             <a href="{{root_path}}/accounts/logout/">{% trans 'Log out' %}</a>
48         {% endblock %}
49         {% else %}
50             <a href="{{root_path}}/accounts/login/?next={{thispage}}">{% trans 'Log in' %}</a>
51         {% endif %}
52         </div>
53         {% block nav-global %}{% endblock %}
54     </div>
55     {% endif %}
56     {% block breadcrumbs %}{% endblock %}
57     {% if messages %}
58         <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul>
59     {% endif %}
60
61     <!-- Content -->
62     <div id="content" class="{% block coltype %}colM{% endblock %}">
63         {% block pretitle %}{% endblock %}
64         {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
65         {% block content %}
66         {% block object-tools %}{% endblock %}
67         {{ content }}
68         {% endblock %}
69         {% block sidebar %}{% endblock %}
70     </div>
71     <!-- END Content -->
72
73     {% block footer %}<div id="footer"></div>{% endblock %}
74 <!-- END Container -->
75 </body>
76 </html>