From 26d70c4ef97ae838ef09ceec0277f8d439c25057 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Wed, 25 Mar 2020 17:25:44 +0100 Subject: [PATCH] page title and edit buttons --- apps/member/views.py | 4 ---- templates/member/club_info.html | 11 +++++++++++ templates/member/profile_info.html | 3 +++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/apps/member/views.py b/apps/member/views.py index 7d3ed748..b518ad24 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -143,10 +143,6 @@ class UserDetailView(LoginRequiredMixin, DetailView): club_list = \ Membership.objects.all().filter(user=user).only("club") context['club_list'] = ClubTable(club_list) - context['title'] = _("Account #%(id)s: %(username)s") % { - 'id': user.pk, - 'username': user.username, - } return context diff --git a/templates/member/club_info.html b/templates/member/club_info.html index a88527fc..d720b64f 100644 --- a/templates/member/club_info.html +++ b/templates/member/club_info.html @@ -1,5 +1,8 @@ {% load i18n static pretty_money %}
+
+

Club {{ club.name }}

+
+
diff --git a/templates/member/profile_info.html b/templates/member/profile_info.html index 30383866..9ff20385 100644 --- a/templates/member/profile_info.html +++ b/templates/member/profile_info.html @@ -1,6 +1,9 @@ {% load i18n static pretty_money %}
+
+

{% trans "Account #" %} {{ object.pk }}

+