forked from Signbank/FinSL-signbank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlangbar.html
31 lines (31 loc) · 1.55 KB
/
langbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% load i18n %}
<div id="langselect">{% include "setlang.html" %}</div>
{% if user.is_authenticated %}{% include 'notifications/list.html' %}{% endif %}
<div id="login">
{% if user.is_authenticated %}
{# Translators: User profile menu button #}
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span> {{ user }} <span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
{% if request.user.is_staff %}
<li><a href="{% url 'admin:index' %}">{% blocktrans %}Django admin{% endblocktrans %}</a></li>
<li role="separator" class="divider"></li>
{% endif %}
<li><a href="{% url 'password_change' %}">{% blocktrans %}Change password{% endblocktrans %}</a></li>
<li role="separator" class="divider"></li>
<li><a href="{% url 'logout' %}"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
{% blocktrans %}Sign out{% endblocktrans %}</a></li>
</ul>
</div>
{% else %}
{# Translators: Sign in link #}
<a class="btn btn-default" role="button" href="{% url 'login' %}">
{% blocktrans %}Sign in{% endblocktrans %}</a>
<a class="btn btn-primary" role="button" href="{% url 'django_registration_register' %}">
{% blocktrans %}Create account{% endblocktrans %}
</a>
{% endif %}
</div>