{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}{{ role.name }} - Pychestrate Configuration{% endblock %} {% block content %}
Name {{ role.name }}
Description {{ role.description or '—' }}
Type {% if role.is_system %} Built-in Role {% else %} Custom Role {% endif %}
Assigned {{ role.binding_count }} user{{ '' if role.binding_count == 1 else 's' }}
Created {{ role.created_at | format_datetime('%Y-%m-%d %H:%M:%S', 'Unknown') }}

Who has this role ({{ role.binding_count }})

{% if not may_see_holders %}

Naming the people who have a role needs permission to view users.

{% elif role_holders %}
{% for holder in role_holders %} {% endfor %}
Name Username Applies to
{% if holder.kind == 'user' and holder.login_name %} {{ holder.label }} {% else %} {{ holder.label }} {% endif %} {% if not holder.is_active %}Deactivated{% endif %} {{ holder.login_name or '—' }} {{ holder.scope_label }}
{% if role.binding_count > role_holders | length %}

Showing the first {{ role_holders | length }} of {{ role.binding_count }}.

{% endif %} {% else %}

Nobody has this role yet. Give it to a person from their user page.

{% endif %}

Permissions ({{ role.permissions | length }})

{% if role.permissions %} {% for group in role.permissions | permission_groups %}

{{ group.label }}

{% endfor %} {% else %}

No permissions assigned

{% endif %}
{% if may_change_roles %} {% if not role.is_system %} {{ ui.icon("edit") }} Edit Role {% endif %} {{ ui.icon("add") }} Copy Role {% if not role.is_system %}
{% endif %} {% endif %} {% if role.is_system %}

Built-in role: its permissions are defined by the system and cannot be edited or deleted. Copy it to make a version you can change.

{% endif %} Back to List
{% endblock %}