From 9bc9ed1ef71ea1332a6f9803d0e827d68dc4b24e Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Wed, 24 May 2017 08:02:33 +0200 Subject: [PATCH] hide when no buttons, add ? to headline --- src/teams/templates/team_list.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/teams/templates/team_list.html b/src/teams/templates/team_list.html index 492c74f0..b94f9c26 100644 --- a/src/teams/templates/team_list.html +++ b/src/teams/templates/team_list.html @@ -22,8 +22,10 @@ Teams | {{ block.super }} Description Responsible Members - Member - Actions + Member? + {% if request.user in team.members.all or request.user in team.responsible.all %} + Actions + {% endif %} @@ -51,11 +53,11 @@ Teams | {{ block.super }} {% if membership_status == 'Membership Pending' %} {% else %} - {% if membership_status == 'Member' %} - - {% else %} - - {% endif %} + {% if membership_status == 'Member' %} + + {% else %} + + {% endif %} {% endif %}