Show user count in federated server table

This commit is contained in:
Mouse Reeve 2021-09-12 09:59:35 -07:00
parent c01fea9dba
commit 22f01508d2
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,9 @@
{% trans "Software" as text %} {% trans "Software" as text %}
{% include 'snippets/table-sort-header.html' with field="application_type" sort=sort text=text %} {% include 'snippets/table-sort-header.html' with field="application_type" sort=sort text=text %}
</th> </th>
<th>
{% trans "Users" %}
</th>
<th>{% trans "Status" %}</th> <th>{% trans "Status" %}</th>
</tr> </tr>
{% for server in servers %} {% for server in servers %}
@ -52,6 +55,7 @@
{% if server.application_version %}({{ server.application_version }}){% endif %} {% if server.application_version %}({{ server.application_version }}){% endif %}
{% endif %} {% endif %}
</td> </td>
<td>{{ server.user_set.count }}</td>
<td>{{ server.get_status_display }}</td> <td>{{ server.get_status_display }}</td>
</tr> </tr>
{% endfor %} {% endfor %}