feat: Add login/logout button

This commit is contained in:
moanos [he/him] 2024-04-07 10:00:37 +02:00
parent e3ee4a2d32
commit ddd28a677d

View File

@ -5,15 +5,23 @@
</div>
<div class="header">
<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>
<nav id="nav" class="nav justify-content-center">
<a class="nav-link " href="{% url "search" %}"><i class="fas fa-search"></i> Suchen</a>
<a class="nav-link " href="{% url "add-adoption" %}"><i class="fas fa-"></i> Vermittlung hinzufügen</a>
<a class="nav-link " href="{% url "about" %}"><i class="fas fa-info"></i> Über uns</a>
<a class="nav-link " href=""><i class="fas fa-feather"></i> RSS</a>
<a class="nav-link " href="{% url "search" %}"><i class="fas fa-search"></i> Suchen</a>
<a class="nav-link " href="{% url "add-adoption" %}"><i class="fas fa-"></i> Vermittlung hinzufügen</a>
<a class="nav-link " href="{% url "about" %}"><i class="fas fa-info"></i> Über uns</a>
<a class="nav-link " href=""><i class="fas fa-feather"></i> RSS</a>
</nav>
<div class="header-right">
<a href="https://codeberg.org/moanos/notfellchen">{% translate "About the software" %}</a>
</div>
</nav>
<div class="header-right">
{% if user.is_authenticated %}
<div class="profile-card">
<p>{{ user.username }}</p>
<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit">Ausloggen</button>
</form>
</div>
{% endif %}
</div>
</div>