feat: use fontawsome to indicate actions

This commit is contained in:
moanos [he/him] 2024-08-02 18:50:37 +02:00
parent 8fc08deb61
commit d32858fe76
2 changed files with 4 additions and 5 deletions

View File

@ -187,7 +187,6 @@ select, button {
padding: 8px; padding: 8px;
border-radius: 4px; border-radius: 4px;
border: none; border: none;
font-weight: bold;
} }
.form-button, .link-button a:link, .link-button a:visited { .form-button, .link-button a:link, .link-button a:visited {

View File

@ -18,16 +18,16 @@
<div class="profile-card"> <div class="profile-card">
{% include "fellchensammlung/forms/change_language.html" %} {% include "fellchensammlung/forms/change_language.html" %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
<a class="btn2" href="{{ user.get_absolute_url }}">Profile</a> <a class="btn2" href="{{ user.get_absolute_url }}"><i aria-hidden="true" class="fas fa-user"></i></a>
<form class="btn2 button_darken" action="{% url 'logout' %}" method="post"> <form class="btn2 button_darken" action="{% url 'logout' %}" method="post">
{% csrf_token %} {% csrf_token %}
<button type="submit">{% translate "Ausloggen" %}</button> <button type="submit"><i aria-hidden="true" class="fas fa-sign-out"></i></button>
</form> </form>
</div>
{% else %} {% else %}
<a class="btn2" href="{% url "django_registration_register" %}">{% translate "Registrieren" %}</a> <a class="btn2" href="{% url "django_registration_register" %}">{% translate "Registrieren" %}</a>
<a class="btn2" href="{% url "login" %}">{% translate "Einloggen" %}</a> <a class="btn2" href="{% url "login" %}"><i class="fa fa-sign-in" aria-hidden="true"></i></a>
{% endif %} {% endif %}
</div>
</div> </div>
</div> </div>