From f1c79a5f943f34de5f01884a6cf405902af592db Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 18 Nov 2024 22:58:32 +0100 Subject: [PATCH] feat: UI improvements for user profile --- .../fellchensammlung/details/detail-user.html | 55 +++++++++++-------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail-user.html b/src/fellchensammlung/templates/fellchensammlung/details/detail-user.html index 2bab34c..40a05b4 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail-user.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail-user.html @@ -13,27 +13,38 @@

{% translate "Keine bevorzugte Sprache gesetzt." %}

{% endif %} - {% if token %} -
- {% csrf_token %} -

{% translate "API token:" %} {{ token }}

- -
- {% else %} -

{% translate "No token set." %}

-
- {% csrf_token %} - -
- {% endif %} +
+ {% if user.id is request.user.id %} +
+ {% if token %} +
+ {% csrf_token %} +

{% translate "API token:" %} {{ token }}

+ +
+ {% else %} +

{% translate "Kein API-Token vorhanden." %}

+
+ {% csrf_token %} + +
+ {% endif %} +
+

+

+

{% trans 'Profil verwalten' %}

+

+ {% translate "Change password" %} + {% translate "Daten exportieren" %} +

+
+

+

{% translate 'Benachrichtigungen' %}

+ {% include "fellchensammlung/lists/list-notifications.html" %} +

{% translate 'Meine Vermittlungen' %}

+ {% include "fellchensammlung/lists/list-adoption-notices.html" %} - {% if user.id is request.user.id %} -

{% translate "Change password here." %}

-

{% translate "Export your data." %}

-

{% translate 'Benachrichtigungen' %}

- {% include "fellchensammlung/lists/list-notifications.html" %} -

{% translate 'Meine Vermittlungen' %}

- {% include "fellchensammlung/lists/list-adoption-notices.html" %} - - {% endif %} + {% endif %} {% endblock %} \ No newline at end of file