--- a/src/hdalab/templates/base.html Fri Jul 11 16:49:14 2014 +0200
+++ b/src/hdalab/templates/base.html Wed Jul 16 15:15:50 2014 +0200
@@ -1,4 +1,5 @@
{% load analytics %}
+{% load i18n %}
{% load static %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -31,6 +32,13 @@
<li><a class="{% block facettes_actif %}{% endblock %}" href="{% url 'facettes' %}">Facettes</a></li>
<li><a class="{% block categories_actif %}{% endblock %}" href="{% url 'categories' %}">Catégories de Wikipedia</a></li>
<li><a class="{% block thesaurus_actif %}{% endblock %}" href="{% url 'thesaurus' %}">Thésaurus</a></li>
+ <li>—</li>
+ {% if user.is_authenticated %}
+ <li><a href="{% url 'profile_home' %}">{{ user.username }}</a></li>
+ <li><a href="{% url 'logout' %}?next={% url 'home' %}">{% trans "Log out" %}</a></li>
+ {% else %}
+ <li class="hello-user"><a href="{% url 'login' %}">{% trans "Log in" %}</a></li>
+ {% endif %}
</ul>
<h1>
<a href="{% url 'home' %}">HdA Lab</a>