2021-10-28 13:24:34 +00:00
|
|
|
{% extends theme('base.html') %}
|
2021-07-01 16:21:20 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="ui segment">
|
|
|
|
<a class="ui primary button" href="{{ url_for('groups.create_group') }}">{% trans %}Add a group{% endtrans %}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui segment">
|
2021-12-10 16:08:43 +00:00
|
|
|
<h2 class="ui center aligned header">
|
|
|
|
<div class="content">
|
|
|
|
{% trans %}Groups{% endtrans %}
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
<table class="ui table">
|
|
|
|
<thead>
|
2021-12-10 16:22:00 +00:00
|
|
|
<th></th>
|
2021-12-10 16:08:43 +00:00
|
|
|
<th>{% trans %}Name{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Description{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Number of members{% endtrans %}</th>
|
|
|
|
</thead>
|
2021-07-01 16:21:20 +00:00
|
|
|
{% for group in groups %}
|
2021-12-10 16:08:43 +00:00
|
|
|
<tr>
|
2021-12-10 16:22:00 +00:00
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('groups.group', groupname=group.name) }}">
|
|
|
|
<i class="users circular black inverted icon"></i>
|
|
|
|
</a>
|
|
|
|
</td>
|
2021-12-10 16:08:43 +00:00
|
|
|
<td><a href="{{ url_for('groups.group', groupname=group.name) }}">{{ group.name }}</a></td>
|
|
|
|
<td>{% if group.description %}{{ group.description[0] }}{% endif %}</td>
|
|
|
|
<td>{{ group.member|len }}</td>
|
|
|
|
</tr>
|
2021-07-01 16:21:20 +00:00
|
|
|
{% endfor %}
|
2021-12-10 16:08:43 +00:00
|
|
|
</table>
|
2021-07-01 16:21:20 +00:00
|
|
|
</div>
|
2021-12-10 16:08:43 +00:00
|
|
|
{% endblock %}
|