{% extends "vantage/base.html" %} {% load static vantage i18n %} {% block head %} {% endblock %} {% block content %}

{{ page_title }}

{% if target.name %}{{ target.name }} · {% endif %}{% if target.email %}{{ target.email }} · {% endif %}{{ page_description }}

{% if target_is_superuser %}

{% translate "This account is a superuser: it holds every permission, whatever is listed below." %}

{% endif %} {% if not target.active %}

{% translate "This account is inactive, so none of these permissions currently apply." %}

{% endif %}

{% translate "Roles" %}

{% if target_roles %} {% else %}

{% translate "No roles." %}

{% endif %}
{% if effective %} {% for app, rows in effective %} {% for row in rows %} {% endfor %} {% endfor %}
{% blocktranslate count counter=effective_count %}{{ counter }} permission{% plural %}{{ counter }} permissions{% endblocktranslate %}
{% translate "Permission" %} {% translate "Code" %} {% translate "Granted by" %}
{{ app }}
{{ row.permission.name }} {{ row.label }} {% if row.direct %}{% translate "Direct grant" %}{% endif %} {% for role in row.roles %}{{ role.name }}{% endfor %}
{% else %}
{% icon "shield" class="v-empty-icon" %}

{% translate "No permissions from roles or direct grants." %}

{% endif %}

{% translate "Lists what the database grants through roles and directly. A custom authentication backend may grant more." %}

{% endblock %}