{% extends "base.html" %} {% from "components/ui.html" import card, empty %} {% from "components/grants.html" import grants_of %} {% block title %}Roles ยท {{ APP_NAME }}{% endblock %} {% block heading %}Roles{% endblock %} {% block subheading %}
Named sets of grants that users share
{% endblock %} {% block actions %} {% if can_create %}New role{% endif %} {% endblock %} {% block content %} {% if roles %} {% call card("Roles", meta=roles | length, tight=True) %}
{% for role in roles %} {% endfor %}
RoleGrantsUsers
{{ role.id }} {{ grants_of(role.grants, names) }} {{ used.get(role.id) | or_missing }}
{% endcall %} {% else %} {{ empty("No role yet.") }} {% endif %} {% endblock %}