From d2a78dcf1c524f4cd5d4c14392ca956fdee6d788 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 2 Apr 2017 19:11:11 +0200 Subject: [PATCH] add some more details to team list and detail pages --- src/teams/templates/team_detail.html | 20 +++++++++----------- src/teams/templates/team_list.html | 8 +++++++- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/teams/templates/team_detail.html b/src/teams/templates/team_detail.html index 3d7b186f..8b84acea 100644 --- a/src/teams/templates/team_detail.html +++ b/src/teams/templates/team_detail.html @@ -7,19 +7,17 @@ Team: {{ team.name }} | {{ block.super }} {% block content %} -

{{ team.name }}

+

{{ team.name }} Team

{{ team.description|unsafecommonmark }} -{% if team.sub_teams.exists %} -
-

Subteams:

- -{% endif %} - +
+

{{ team.area.name }} Area:

+

This team is under the {{ team.area.name }} area. The following users are responsible for the {{ team.area.name }} area:

+ {% endblock %} diff --git a/src/teams/templates/team_list.html b/src/teams/templates/team_list.html index e78f3448..9873c6b4 100644 --- a/src/teams/templates/team_list.html +++ b/src/teams/templates/team_list.html @@ -14,6 +14,7 @@ Teams | {{ block.super }} Name Description Area + Responsible {% if request.user.is_authenticated %} Membership Action @@ -32,7 +33,12 @@ Teams | {{ block.super }} {{ team.description|unsafecommonmark|truncatewords:50 }} - {{ team.area.name }} + {{ team.area.name }} Area + + + {% for resp in team.area.responsible.all %} + {{ resp.name|default:"Unnamed" }}
+ {% endfor %} {% if request.user.is_authenticated %}