From 2fbc44bd54a3f0ed67cbb6236e38afbb407a2135 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 10 Jun 2019 00:11:57 +0100 Subject: Make user list public --- app/templates/base.html | 3 ++- app/templates/users/list.html | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'app/templates') diff --git a/app/templates/base.html b/app/templates/base.html index e672890..2f483dc 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -133,7 +133,8 @@ GitHub | Help | Policy and Guidance | - Report / DMCA + Report / DMCA | + User List diff --git a/app/templates/users/list.html b/app/templates/users/list.html index 6bc23b5..5ec5662 100644 --- a/app/templates/users/list.html +++ b/app/templates/users/list.html @@ -11,8 +11,10 @@ {{ user.display_name }} - - {{ user.rank.getTitle() }} - - {{ user.packages.count() }} packages. + {{ user.rank.getTitle() }} + {% if current_user.is_authenticated %} + - {{ user.packages.count() }} packages. + {% endif %} {% endfor %} {% endblock %} -- cgit v1.2.3