{% from "ui.html" import badge, empty_row with context %}
{% for row in rows %} {% else %} {% if failure %} {{ empty_row(6, 'The list could not be loaded', 'Reload the page to try again.') }} {% elif role %} {{ empty_row(6, "No users match the filter", "Nobody has the " ~ role ~ " role yet.", "Clear filter", url_for('users').path) }} {% endif %} {% endfor %}
Name Role Comment State Created
{{ row.name }} {{ row.role }} {{ row.comment or '' }} {{ badge(row.state) }} {{ row.created_at | when }}
{% if row.state == "enabled" %} {% else %}
{% endif %}
{% if rows %}{{ rows | length | counted("user") }}{% endif %}