Make it so the login link redirects you back to the page you were looking at.
[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/1999/xhtml"
7       xmlns:dc="http://purl.org/dc/elements/1.1/"
8       xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
9       xmlns:libns="http://jumpgate.caltech.edu/wiki/LibraryOntology#"
10       xmlns:invns="http://jumpgate.caltech.edu/wiki/InventoryOntology#"
11       xml:lang="en"
12 >
13 <!--base.html-->
14 <head>
15     <title>{% block title %}{{ app_name }} - {{ page_name }}{% endblock %}</title>
16
17 {% block additional_css %}
18     {% load adminmedia %}
19     {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
20     {% block extrastyle %}{% endblock %}
21     {% block extrahead %}{% endblock %}
22     {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
23     <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/data-browse-index.css" />
24 {% endblock %}
25
26 </head>
27 <body>
28 <!-- Container -->
29     {% if not is_popup %}
30
31     <div id="header">
32         <div id="branding">
33         {% block branding %}{% endblock %}
34         </div>
35         <div id="user-tools">
36         {% if user.is_authenticated %}
37         {% trans 'Welcome,' %}
38         <strong>{% firstof user.first_name user.username %}</strong>.
39         {% block userlinks %}
40             {% url django-admindocs-docroot as docsroot %}
41             {% if docsroot %}
42                 <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
43             {% endif %}
44             <a href="{{root_path}}/accounts/password_change/">{% trans 'Change password' %}</a> /
45             <a href="{{root_path}}/accounts/logout/">{% trans 'Log out' %}</a>
46         {% endblock %}
47         {% else %}
48             <a href="{{root_path}}/accounts/login/?next={{thispage}}">{% trans 'Log in' %}</a>
49         {% endif %}
50         </div>
51         {% block nav-global %}{% endblock %}
52     </div>
53     {% endif %}
54     {% block breadcrumbs %}{% endblock %}
55     {% if messages %}
56         <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul>
57     {% endif %}
58
59     <!-- Content -->
60     <div id="content" class="{% block coltype %}colM{% endblock %}">
61         {% block pretitle %}{% endblock %}
62         {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
63         {% block content %}
64         {% block object-tools %}{% endblock %}
65         {{ content }}
66         {% endblock %}
67         {% block sidebar %}{% endblock %}
68         <br class="clear" />
69     </div>
70     <!-- END Content -->
71
72     {% block footer %}<div id="footer"></div>{% endblock %}
73 <!-- END Container -->
74 </body>
75 </html>