{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}{{ title }} | {{ site_title|default:"Django site admin" }}{% endblock %} {% block extrastyle %}{{ block.super }} {% include "karni_admin/includes/page_styles.html" %} {% endblock %} {% block content %}
{% if report %}

{{ report.username }} {% if report.superuser %} {% translate "is a superuser: every permission on every row, whatever the roles say." %} {% elif report.roles %} {% translate "holds these roles:" %} {{ report.roles|join:", " }} {% elif user_grants %} {% translate "holds no role. Only user grants apply." %} {% else %} {% translate "holds no role, so no grant applies." %} {% endif %}

{% if user_grants_url %}

{% translate "User grants" %}

{% endif %}
{% for group in grouped %} {% for entry in group.entries %} {% endfor %} {% endfor %}
{% translate "Action" %} {% translate "Rows" %} {% translate "Why" %}
{{ group.model }}
{{ entry.action }} {% if entry.scope %}{{ entry.scope }}{% else %}-{% endif %} {% for source in entry.sources %}
{% if source.origin == "superuser" %} {% translate "superuser" %} {% elif source.grant %} {% blocktranslate with grant=source.grant scope=source.scope trimmed %} user grant {{ grant }} grants {{ scope }} {% endblocktranslate %} {% if source.targets %}{% translate "targets" %} {{ source.targets|join:", " }}{% endif %} {% if source.expires_at %}{% translate "until" %} {{ source.expires_at }}{% endif %} {% if source.reason %}({{ source.reason }}){% endif %} {% elif source.scope %} {% blocktranslate with role=source.role scope=source.scope origin=source.origin trimmed %} role {{ role }} grants {{ scope }} ({{ origin }}) {% endblocktranslate %} {% else %} {% blocktranslate with role=source.role trimmed %} role {{ role }}: revoked in the permission matrix {% endblocktranslate %} {% endif %}
{% empty %} {% if user_grants %}{% translate "no role or user grant gives it" %}{% else %}{% translate "no role grants it" %}{% endif %} {% endfor %}
{% elif not query %}

{% translate "Pick a user to see exactly what they may do, and which role grants it at which scope." %}

{% endif %}
{% endblock %}