feat: re-add profile card
This commit is contained in:
parent
34b707ef20
commit
70bf8e2053
@ -5,22 +5,53 @@
|
|||||||
<div>
|
<div>
|
||||||
<a href="{% url "index" %}" class="logo"><img src={% static 'fellchensammlung/img/logo_transparent.png' %}></a>
|
<a href="{% url "index" %}" class="logo"><img src={% static 'fellchensammlung/img/logo_transparent.png' %}></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="profile-card">
|
||||||
|
<div id="header-change-language">
|
||||||
|
{% include "fellchensammlung/forms/change_language.html" %}
|
||||||
|
</div>
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<div class="btn2 button_darken btn-notification">
|
||||||
|
<a href="{{ user.get_notifications_url }}">
|
||||||
|
<i class="fa fa-bell" aria-hidden="true"></i>
|
||||||
|
</a>
|
||||||
|
{% if user.get_num_unread_notifications > 0 %}
|
||||||
|
<span class="button__badge">{{ user.get_num_unread_notifications }}</span>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a class="btn2" href="{% url 'user-me' %}"><i aria-hidden="true" class="fas fa-user"></i></a>
|
||||||
|
<form class="btn2 button_darken" id="header-sign-out" action="{% url 'logout' %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button class="button" type="submit"><i aria-hidden="true" class="fas fa-sign-out"></i></button>
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
<a class="btn2" href="{% url "django_registration_register" %}">{% translate "Registrieren" %}</a>
|
||||||
|
<a class="btn2" href="{% url "login" %}"><i class="fa fa-sign-in" aria-hidden="true"></i></a>
|
||||||
|
{% endif %}
|
||||||
<input id="menu-toggle" type="checkbox"/>
|
<input id="menu-toggle" type="checkbox"/>
|
||||||
<label class='menu-button-container' for="menu-toggle">
|
<label class='menu-button-container' for="menu-toggle">
|
||||||
<div class='menu-button'></div>
|
<div class='menu-button'></div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li>
|
<li>
|
||||||
<a class="nav-link " href="{% url "search" %}"><i class="fas fa-search"></i> {% translate 'Suchen' %}
|
<a class="nav-link " href="{% url "search" %}"><i
|
||||||
|
class="fas fa-search"></i> {% translate 'Suchen' %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a class="nav-link " href="{% url "add-adoption" %}"><i
|
<li><a class="nav-link " href="{% url "add-adoption" %}"><i
|
||||||
class="fas fa-feather"></i> {% translate 'Vermittlung hinzufügen' %}</a></li>
|
class="fas fa-feather"></i> {% translate 'Vermittlung hinzufügen' %}</a></li>
|
||||||
<li><a class="nav-link " href="{% url "about" %}"><i class="fas fa-info"></i> {% translate 'Über uns' %}</a>
|
<li><a class="nav-link " href="{% url "about" %}"><i
|
||||||
|
class="fas fa-info"></i> {% translate 'Über uns' %}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a class="nav-link " href="{% url "rss" %}"><i class="fa-solid fa-rss"></i> {% translate 'RSS' %}</a>
|
<li><a class="nav-link " href="{% url "rss" %}"><i
|
||||||
|
class="fa-solid fa-rss"></i> {% translate 'RSS' %}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user