Skip to content
Snippets Groups Projects
Commit fe3c7b4d authored by Mark Skipper's avatar Mark Skipper
Browse files

Add log-out link to sidebar

parent afc59998
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,16 @@
<div class="col-sm-2 col-sd-2 sidebar internews-sidebar">
<h2>{% trans "Internews" %}</h2>
<p>{% trans "humanitarian information dashboard (HID)" %} <a href=".">{% trans "info" %}</a></p>
{% if request.user.is_authenticated %}
<ul class="list-unstyled">
<li>
{% bootstrap_icon "user" %}
{{ request.user }}
<a href="{% url "logout" %}?next={% url 'login' %}">{% bootstrap_icon "log-out" %} {% trans "Log out" %}</a>
</li>
</ul>
{% endif %}
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main internews-main">
{% block maincontent %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment