2015-10-16 17:53:02 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load account_tags %}
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="nav navbar-nav pull-right">
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<span class="navbar-text">
|
|
|
|
<i class="fa fa-user"></i> {% user_display request.user %}
|
|
|
|
</span>
|
|
|
|
<li>
|
|
|
|
<a href="{% url "dashboard" %}"><i class="fa fa-tasks"></i> {% trans "Dashboard" %}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a id="account_logout" href="{% url 'account_logout' %}"><i class="fa fa-power-off"></i> {% trans "Log out" %}</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li><a href="{% url 'account_login' %}">{% trans "Log in" %}</a></li>
|
|
|
|
{% if ACCOUNT_OPEN_SIGNUP %}
|
|
|
|
<li><a href="{% url 'account_signup' %}">{% trans "Sign up" %}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
|
2017-08-10 23:23:24 +00:00
|
|
|
<form id="accountLogOutForm" action="{% url 'account_logout' %}" method="POST">
|
2015-10-16 17:53:02 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
</form>
|