|
|
|
|
@ -1,14 +1,12 @@ |
|
|
|
|
{% load static %} {% load thumbnail %} |
|
|
|
|
{% load rupluralize from plural %} |
|
|
|
|
{% if request.user.is_authenticated %} |
|
|
|
|
{% if request.user.bonus %} |
|
|
|
|
<div class="header__bonuses"> |
|
|
|
|
<a class="header__bonuses-link" href="{% url 'user-bonuses' %}"> |
|
|
|
|
<img class="header__lil-coin-img" src="{% static 'img/lilcoin.png' %}" /> |
|
|
|
|
{{ request.user.bonus }} |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
<div class="header__login"> |
|
|
|
|
<a class="header__ava ava" href="{% if request.user_agent.is_touch_capable %}#{% else %}{% url 'user-profile' %}{% endif %}"> |
|
|
|
|
{% thumbnail request.user.photo "48x48" crop="center" as im %} |
|
|
|
|
|