From 63dc184ce4799c0351de81d7b1050ae962d9f915 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 25 Aug 2020 15:05:50 +0200 Subject: [PATCH 1/4] Do not list alias on profile page --- apps/member/templates/member/club_info.html | 8 ++++++-- apps/member/templates/member/profile_info.html | 12 +++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/member/templates/member/club_info.html b/apps/member/templates/member/club_info.html index bc76385b..bbae10ba 100644 --- a/apps/member/templates/member/club_info.html +++ b/apps/member/templates/member/club_info.html @@ -54,8 +54,12 @@
{{ club.note.balance | pretty_money }}
{% endif %} -
{% trans 'aliases'|capfirst %}
-
{{ club.note.alias_set.all|join:", " }}
+
{% trans 'aliases'|capfirst %}
+
+ + {% trans 'Edit my aliases' %} ({{ club.note.alias_set.all|length }}) + +
{% trans 'email'|capfirst %}
{{ club.email }}
diff --git a/apps/member/templates/member/profile_info.html b/apps/member/templates/member/profile_info.html index 3fbf5e3d..a7aaadaa 100644 --- a/apps/member/templates/member/profile_info.html +++ b/apps/member/templates/member/profile_info.html @@ -26,6 +26,13 @@ {% endif %} +
{% trans 'aliases'|capfirst %}
+
+ + {% trans 'Edit my aliases' %} ({{ user_object.note.alias_set.all|length }}) + +
+
{% trans 'section'|capfirst %}
{{ user_object.profile.section }}
@@ -47,11 +54,6 @@
{{ user_object.profile.paid|yesno }}
{% endif %} - -

{% trans 'aliases'|capfirst %}

- {% for alias in user_object.note.alias_set.all %} - {{ alias }} - {% endfor %}