--- a/stashboard/stashboard/handlers/site.py +++ b/stashboard/stashboard/handlers/site.py @@ -137,6 +137,7 @@ service_dict = { "slug": service.slug, "name": service.name, + "list": service.list.name, "url": service.url(), "status": status, "has_issues": has_issues, diff --git a/stashboard/stashboard/templates/index.html b/stashboard/stashboard/templates/index.html index ca6ba2b..6b0407f 100644 --- a/stashboard/stashboard/templates/index.html +++ b/stashboard/stashboard/templates/index.html @@ -13,6 +13,11 @@ <tbody> {% for service in services %} + {% ifchanged service.list %} + <tr> + <th>{{ service.list }}</th> + </tr> + {% endifchanged %} <tr id="{{ service.slug}}"> <td> <a href="{{ service.url }}">{{ service.name }}</a>