Commit 178e1724 by Szabolcs Gelencser

Fix logout button alignment

parent d5c96378
......@@ -13,60 +13,63 @@
{% block navbar %}
{% if view.request.user.is_authenticated and view.request.user.pk and not view.request.token_user %}
<span id="user-options" data-desktop_notifications="{{ request.user.profile.desktop_notifications }}"></span>
{# <span id="user-options" data-desktop_notifications="{{ request.user.profile.desktop_notifications }}"></span>#}
<ul class="nav navbar-nav navbar-right" id="dashboard-menu">
{% if request.user.is_superuser %}
{% if ADMIN_ENABLED %}
<li>
<a href="/admin/">
<i class="fa fa-cogs"></i>
<span class="hidden-sm">{% trans "Admin" %}</span>
</a>
</li>
<li>
<a href="/rosetta/">
<i class="fa fa-space-shuttle"></i>
<span class="hidden-sm">{% trans "Translations" %}</span>
</a>
</li>
{% endif %}
<li>
<a href="{% url "dashboard.views.message-list" %}">
<i class="fa fa-bullhorn"></i>
<span class="hidden-sm">{% trans "Messages" %}</span>
</a>
</li>
<li>
<a href="{% url "dashboard.views.storage" %}">
<i class="fa fa-database"></i>
<span class="hidden-sm">{% trans "Storage" %}</span>
</a>
</li>
<li>
<a href="{% url "network.index" %}">
<i class="fa fa-globe"></i>
<span class="hidden-sm">{% trans "Network" %}</span>
</a>
</li>
<li>
<a href="{% url "request.views.request-list" %}">
<i class="fa fa-phone"></i>
<span class="hidden-sm">{% trans "Requests" %}</span>
</a>
</li>
{% endif %}
{# <li>#}
{# <a href="{% url "dashboard.views.profile-preferences" %}">#}
{# <i class="fa fa-user"></i>#}
{# {% include "dashboard/_display-name.html" with user=request.user show_org=True %}#}
{# </a>#}
{# </li>#}
{# {% if request.user.is_superuser %}#}
{# {% if ADMIN_ENABLED %}#}
{# <li>#}
{# <a href="/admin/">#}
{# <i class="fa fa-cogs"></i>#}
{# <span class="hidden-sm">{% trans "Admin" %}</span>#}
{# </a>#}
{# </li>#}
{# <li>#}
{# <a href="/rosetta/">#}
{# <i class="fa fa-space-shuttle"></i>#}
{# <span class="hidden-sm">{% trans "Translations" %}</span>#}
{# </a>#}
{# </li>#}
{# {% endif %}#}
{# <li>#}
{# <a href="{% url "dashboard.views.message-list" %}">#}
{# <i class="fa fa-bullhorn"></i>#}
{# <span class="hidden-sm">{% trans "Messages" %}</span>#}
{# </a>#}
{# </li>#}
{# <li>#}
{# <a href="{% url "dashboard.views.storage" %}">#}
{# <i class="fa fa-database"></i>#}
{# <span class="hidden-sm">{% trans "Storage" %}</span>#}
{# </a>#}
{# </li>#}
{# <li>#}
{# <a href="{% url "network.index" %}">#}
{# <i class="fa fa-globe"></i>#}
{# <span class="hidden-sm">{% trans "Network" %}</span>#}
{# </a>#}
{# </li>#}
{# <li>#}
{# <a href="{% url "request.views.request-list" %}">#}
{# <i class="fa fa-phone"></i>#}
{# <span class="hidden-sm">{% trans "Requests" %}</span>#}
{# </a>#}
{# </li>#}
{# {% endif %}#}
{# <li>#}
{# <a href="{% url "dashboard.views.profile-preferences" %}">#}
{# <i class="fa fa-user"></i>#}
{# {% include "dashboard/_display-name.html" with user=request.user show_org=True %}#}
{# </a>#}
{# </li>#}
<li>
<a href="{% url "logout" %}?next={% url "login" %}">
<i class="fa fa-sign-out"></i> {% trans "Log out" %}
</a>
</li>
{# <li class="visible-xs">#}
{# <a href="{% url "dashboard.views.notifications" %}">#}
{# {% trans "Notifications" %}#}
......@@ -90,11 +93,12 @@
{# <li>{% trans "Loading..." %}</li>#}
{# </ul>#}
{# </li>#}
{# <li class="hidden-xs">#}
{# <a href="{% url "dashboard.views.profile-preferences" %}">#}
<li class="hidden-xs">
{# TODO: link to preferences #}
<a>
{# <img class="profile-avatar" src="{{ request.user.profile.get_avatar_url }}" />#}
{# </a>#}
{# </li>#}
</a>
</li>
</ul>
{% else %}
......
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 sign in to comment