{% extends "clearance/admin/base.html" %}
{% load i18n clearance %}
{% block crumbs %}› {% translate 'People' %} › {{ person }}{% endblock %}
{% block content %}
{% if standing.superuser %}
{% translate 'A superuser holds every permission and reaches every row, whatever is given here.' %}
{% endif %}
{% if standing.roles %}
{% translate 'Roles' %}
{% for role in standing.roles %}- {{ role }}
{% endfor %}
{% endif %}
{% translate 'Bundles' %}
{% for bundle in standing.bundles %}
- {{ bundle|label:labels }}
{% if may_edit %}{% endif %}
{% empty %}{% if not standing.starting %}- {% translate 'No bundles.' %}
{% endif %}{% endfor %}
{% for bundle in standing.starting %}
- {{ bundle|label:labels }} {% translate 'from their role' %}
{% endfor %}
{% if may_edit and other_bundles %}
{% endif %}
{% translate 'Their own grants' %}
{% for permission, scope in standing.direct %}
| {{ permission|label:labels }} | {{ scope|default_if_none:_("the model's default") }} |
{% empty %}| {% translate 'None.' %} |
{% endfor %}
{% translate 'Taken away' %}
{% for revocation in standing.revocations %}
| {{ revocation.permission|label:labels }} | {{ revocation.reason }} |
{% if may_edit %}{% endif %} |
{% empty %}| {% translate 'Nothing.' %} |
{% endfor %}
{% if may_edit %}
{% translate 'Give or take away one permission' %}
{% endif %}
{% translate 'What they end up allowed' %}
| {% translate 'Permission' %} | {% translate 'From' %} |
{% for held in standing.allowed %}
{{ held.permission|label:labels }} {{ held.name }} |
{% for source in held.sources %} {% if source.direct %}{% translate 'their own grant' %}{% else %}{{ source.bundle|label:labels }}{% if source.starting %} ({% translate 'from their role' %}){% endif %}{% endif %} — {{ source.scope|default_if_none:_("the model's default") }} {% endfor %} |
{% empty %}| {% translate 'Nothing.' %} |
{% endfor %}
{% if standing.stopped %}
{% translate "Given, but stopped by their roles' ceiling" %}
{% for held in standing.stopped %}- {{ held.permission|label:labels }}
{{ held.name }} {% endfor %}
{% endif %}
{% endblock %}