2022-03-16 12:11:30 +01:00
|
|
|
{% load i18n %}
|
2022-08-06 18:56:39 +02:00
|
|
|
{% load static %}
|
2022-03-16 12:11:30 +01:00
|
|
|
|
2022-05-14 11:28:32 +02:00
|
|
|
<div class="userPanel">
|
|
|
|
<div class="userInfo">
|
2022-08-06 18:56:39 +02:00
|
|
|
<img src="{% static 'profilepictures/'|add:user.profile_picture_filename %}">
|
|
|
|
<span>
|
|
|
|
{% if user.first_name != "" %}
|
|
|
|
{% translate "User" %}: {{ user.first_name }} {{ user.last_name }} ({{ user.username }})
|
|
|
|
{% else %}
|
|
|
|
{% translate "User" %}: {{ user.username }}
|
|
|
|
{% endif %}
|
|
|
|
-
|
|
|
|
{% if user.balance < 0.01 %}
|
|
|
|
<span class="userBalanceWarn">{% translate "Balance" %}: {{ user.balance }}{{ currency_suffix }}</span>
|
|
|
|
{% else %}
|
|
|
|
<span>{% translate "Balance" %}: {{ user.balance }}{{ currency_suffix }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
2022-05-14 11:28:32 +02:00
|
|
|
</div>
|
|
|
|
<div class="horizontalButtonList">
|
|
|
|
<a class="button" id="navBarBtnHome" href="/">Home</a>
|
|
|
|
<a class="button" id="navBarBtnDeposit" href="/deposit">{% translate "Deposit" %}</a>
|
2022-06-16 10:22:37 +02:00
|
|
|
<a class="button" href="/accounts/logout">{% translate "Logout" %}</a>
|
2022-05-14 11:28:32 +02:00
|
|
|
<div class="dropDownMenu" id="dropDownMenu">
|
|
|
|
<button class="dropDownButton" id="dropDownMenuButton">
|
|
|
|
<div>{% translate "Account" %}</div>
|
|
|
|
</button>
|
|
|
|
<div class="dropDownList">
|
|
|
|
<a class="button dropDownChoice" id="navBarBtnHistory" href="/history">{% translate "History" %}</a>
|
|
|
|
<a class="button dropDownChoice" id="navBarBtnStatistics" href="/statistics">{% translate "Statistics" %}</a>
|
2022-05-24 18:57:17 +02:00
|
|
|
{% if user.is_superuser or user.is_staff %}
|
2022-05-14 11:28:32 +02:00
|
|
|
<a class="button dropDownChoice" href="/admin/">Admin Panel</a>
|
|
|
|
{% endif %}
|
2022-10-15 19:37:01 +02:00
|
|
|
{% if user.is_superuser or user.allowed_to_supply %}
|
|
|
|
<a class="button dropDownChoice" href="/supply/">{% translate "Supply" %}</a>
|
|
|
|
{% endif %}
|
2022-05-24 18:57:17 +02:00
|
|
|
<a class="button dropDownChoice" href="/accounts/password_change/">{% translate "Change Password" %}</a>
|
2022-05-14 11:28:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-16 12:11:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|