Show information about logged in user

This commit is contained in:
Michal Čihař 2012-02-29 14:19:33 +01:00
parent 5a77b1b59e
commit 8f0e58df46

View File

@ -28,6 +28,15 @@
<body>
<h1>{{ title }}</h1>
<ul class="menu">
{% if user.is_authenticated %}
<li>{% blocktrans with user.get_full_name as name %}Logged in as <a href="/profile/">{{ name }}</a>{% endblocktrans %}</li>
<li><a href="/logout/">{% trans "Logout" %}</a></li>
{% else %}
<li><a href="/login/">{% trans "Login" %}</a></li>
{% endif %}
</ul>
{% if messages %}
{% for message in messages %}
<div class="ui-widget">