From 56741335aaa890408ca196a2552cda3f0d010288 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 2 Apr 2017 20:05:43 +0200 Subject: [PATCH] a few template fixes for team pages --- src/teams/templates/team_detail.html | 8 ++++++++ src/teams/templates/team_list.html | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/teams/templates/team_detail.html b/src/teams/templates/team_detail.html index 0c11db4a..bb874a5e 100644 --- a/src/teams/templates/team_detail.html +++ b/src/teams/templates/team_detail.html @@ -10,7 +10,15 @@ Team: {{ team.name }} | {{ block.super }}

{{ team.name }} Team

{{ team.description|unsafecommonmark }} +

Currently {{ team.members.count }} people are members of this team{% if request.user in team.members.all %} (including you){% endif %}.

+{% if request.user in team.members.all %} + Leave Team +{% else %} + {% if team.needs_members %} + Join Team + {% endif %} +{% endif %}

{{ team.area.name }} Area:

diff --git a/src/teams/templates/team_list.html b/src/teams/templates/team_list.html index bd12b9a6..0276a940 100644 --- a/src/teams/templates/team_list.html +++ b/src/teams/templates/team_list.html @@ -17,7 +17,7 @@ Teams | {{ block.super }} Responsible Members {% if request.user.is_authenticated %} - Membership + Member? Action {% endif %} @@ -45,11 +45,11 @@ Teams | {{ block.super }} {{ team.members.count }} {% if request.user.is_authenticated %} - + {% if request.user in team.members.all %} - Member + {% else %} - Not member + {% endif %}