Commit 8f0e58df authored by Michal Čihař's avatar Michal Čihař

Show information about logged in user

parent 5a77b1b5
......@@ -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">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment