* Give the login and logout views a name and refer to the logout view by that name.
[matthijs/projects/xerxes.git] / templates / base / base.html
1 {% load i18n %}
2 <html>
3 <head>
4 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{{ STATIC_URL_PREFIX }}/base/css/base.css{% endblock %}"/>
5 </head>
6 <body>
7 <div class="Center">
8 <div class="LeftBar">
9 <ul>
10         <li><a href="/influences/">Home</a></li>
11         <li><a href="/accounts/logout/">Logout</a></li>
12 </ul>
13 </div>
14 <div class="Content">
15 {% block content %}
16 {% endblock %}
17 </div>
18 </div>
19 <!-- Dummy class, margins with regard to floats don't work. -->
20 <div class="Clear"></div>
21 <div class="Footer">
22 {% if user.is_authenticated %}
23         <p>{% blocktrans with user.username as username %}You are currently logged in as {{ username }}{% endblocktrans %} 
24         -- <a href="{% url logout %}">{% trans "Logout" %}</a></p>
25 {% endif %}
26 </div>
27
28 </body>
29 </html>