{% extends 'base.html' %} {% block title %}{{ site_name }}: {{ gettext('Permissions') }}{% endblock title %} {% block content %}
{# TRANS: The header for a table listing the permissions you have in divisions. #}

{% trans %}Your Permissions{% endtrans %}

{# TRANS: A column header in a table with the name of a division. #} {# TRANS: A column header in a table that lists the permissions you have in a division (there can be multiple permissions in a row, separated by commas). #} {% for grouper, grouped in current_user.permissions|groupby('division.name') %} {% with grouped_permissions = grouped|map(attribute='permission')|groupby('value') %} {% endwith %} {% endfor %}
{% trans %}Division{% endtrans %}{% trans %}Permissions{% endtrans %}
{{ grouper }}{{ grouped_permissions|map('last')|map('first')|map(attribute='description')|join(', ') }}
{% endblock content %}