|
|
@@ -12,6 +12,7 @@
|
|
12
|
12
|
|
|
13
|
13
|
<div class="navbar-collapse account-collapse collapse">
|
|
14
|
14
|
<div class="container-fluid">
|
|
|
15
|
+ {% block nav_account_languages %}
|
|
15
|
16
|
{% if LANGUAGES|length > 1 %}
|
|
16
|
17
|
<form id="language_selector" class="navbar-left navbar-form" action="{% url 'set_language' %}" method="post">
|
|
17
|
18
|
{% csrf_token %}
|
|
|
@@ -29,8 +30,10 @@
|
|
29
|
30
|
<button class="btn btn-default" type="submit" data-loading-text="{% trans 'Submitting...' %}">{% trans "Go" %}</button>
|
|
30
|
31
|
</form>
|
|
31
|
32
|
{% endif %}
|
|
|
33
|
+ {% endblock %}
|
|
32
|
34
|
<ul class="nav navbar-nav navbar-right">
|
|
33
|
35
|
{% if user.is_authenticated %}
|
|
|
36
|
+ {% block nav_account_navbar_authenticated %}
|
|
34
|
37
|
<li>
|
|
35
|
38
|
{% if num_unread_notifications > 0 %}
|
|
36
|
39
|
{# If user has new notifications - we change account link to go to inbox #}
|
|
|
@@ -47,6 +50,7 @@
|
|
47
|
50
|
<li><a href="{% url 'dashboard:index' %}"><i class="icon-list-ul"></i> {% trans "Dashboard" %}</a></li>
|
|
48
|
51
|
{% endif %}
|
|
49
|
52
|
<li><a id="logout_link" href="{% url 'customer:logout' %}"><i class="icon-signout"></i> {% trans "Logout" %}</a></li>
|
|
|
53
|
+ {% endblock %}
|
|
50
|
54
|
{% else %}
|
|
51
|
55
|
<li><a id="login_link" href="{% url 'customer:login' %}"><i class="icon-signin"></i> {% trans "Login or register" %}</a></li>
|
|
52
|
56
|
{% endif %}
|