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 %}