Add count of live services to organisation list

This is useful information that we might as well return now we have it.
This commit is contained in:
Chris Hill-Scott
2019-06-12 13:43:33 +01:00
parent 913095fe60
commit e6304fe10d
2 changed files with 14 additions and 4 deletions

View File

@@ -33,6 +33,10 @@
{% for org in organisations %}
<li class="browse-list-item">
<a href="{{ url_for('main.organisation_dashboard', org_id=org.id) }}" class="browse-list-link">{{ org.name }}</a>
<p class="browse-list-hint">
{{ org.count_of_live_services }}
live service{% if org.count_of_live_services != 1 %}s{% endif %}
</p>
{% if not org.active %}
<span class="table-field-status-default heading-medium">- archived</span>
{% endif %}