36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
{% extends "layout/default.html" %}
|
|
{% block title %}groups{% endblock %}
|
|
{% block content %}
|
|
<table class="table table-hover align-middle">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th scope="col">group name</th>
|
|
<th scope="col">group description</th>
|
|
<th scope="col">member?</th>
|
|
<th scope="col">member count</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for group in groups|sort %}
|
|
{% if CURRENT_USER.entry_dn in group["member"] or USER_IS_ADMIN %}
|
|
<tr>
|
|
<th scope="row">
|
|
{% if USER_IS_ADMIN %}
|
|
<a href="{{ url_for("group_edit", ou=group["ou"]) }}">{{ group["ou"] }}</a>
|
|
{% else %}
|
|
{{ group["ou"] }}
|
|
{% endif %}
|
|
</th>
|
|
<td>{{ group["description"]|e }}</td>
|
|
{% if CURRENT_USER.entry_dn in group["member"] %}
|
|
<td>✅</td>
|
|
{% else %}
|
|
<td>❌</td>
|
|
{% endif %}
|
|
<td>{{ group["member"]|length }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|