diff --git a/apps/member/views.py b/apps/member/views.py index 651462a..7c0b32e 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -217,7 +217,7 @@ class ProfileListView(AdminMixin, SingleTableView): queryset = TFJMUser.objects.order_by("role", "last_name", "first_name") table_class = UserTable template_name = "member/profile_list.html" - extra_context = dict(title=_("All profiles")) + extra_context = dict(title=_("All profiles"), type="all") class OrphanedProfileListView(AdminMixin, SingleTableView): @@ -229,7 +229,7 @@ class OrphanedProfileListView(AdminMixin, SingleTableView): .order_by("role", "last_name", "first_name") table_class = UserTable template_name = "member/profile_list.html" - extra_context = dict(title=_("Orphaned profiles")) + extra_context = dict(title=_("Orphaned profiles"), type="orphaned") class OrganizersListView(AdminMixin, SingleTableView): @@ -241,7 +241,7 @@ class OrganizersListView(AdminMixin, SingleTableView): .order_by("role", "last_name", "first_name") table_class = UserTable template_name = "member/profile_list.html" - extra_context = dict(title=_("Organizers")) + extra_context = dict(title=_("Organizers"), type="organizers") class ResetAdminView(AdminMixin, View): diff --git a/templates/base.html b/templates/base.html index 21de1c9..218321b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -113,14 +113,6 @@ {% endif %} {% endif %} {% endif %} - {% if user.admin %} -