Commit bfef21b3 by benjaoming

A bit of login toolbar

parent ebb25ab5
......@@ -6,7 +6,6 @@
</script>
<script type="text/javascript" src="{{ STATIC_URL }}wiki/plugins/notifications/js/ui.js"></script>
<ul class="nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="badge notification-cnt">0</span>
......@@ -20,5 +19,4 @@
<li><a href="#" onclick="notify_mark_read()">{% trans "Clear notifications list" %}</a></li>
</ul>
</li>
</ul>
......@@ -57,8 +57,22 @@
</a>
<a class="brand" href="{% url 'wiki:root' %}">django-wiki</a>
<div class="pull-right">
{% if user %}
{% if user.is_authenticated %}
<ul class="nav">
{% include "wiki/plugins/notifications/menubaritem.html" %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="icon-user"></span>
{{ user }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% url 'admin:logout' %}">{% trans "Log out" %}</a>
</li>
</ul>
</li>
</ul>
{% else %}
<ul class="nav">
<li>
......
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