From b2bbbdee1012efcdb9110ebcab7813fd1329960a Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 26 Oct 2015 10:15:39 -0400 Subject: [PATCH] Don't show member link for non-members. --- templates/profile.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/profile.html b/templates/profile.html index 9a72436..a28f0d0 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -21,9 +21,13 @@ {% endif %}
- - {{ user.team.member_count }} member{{ user.team.member_count|pluralize }} - + {% if user.team|user_is_member:request.user %} + + {{ user.team.member_count }} member{{ user.team.member_count|pluralize }} + + {% else %} + {{ user.team.member_count }} members + {% endif %}