{% extends "base.html" %} {% block title %}{{ place.type_name().title() }}: {{ place.name }} – organizátoři{% endblock %} {% block breadcrumbs %} {{ place_breadcrumbs(place, action="Organizátoři") }} {% endblock %} {% macro show_roles(title, roles, inherited) %}

{{ title }}

{% if roles %} {% for role in roles %}
Role Jméno Roč. Kat. Kolo {% if inherited %} Zděděno z {% else %} Přidělil {% endif %}
{{ roles_by_type[role.role].name }} {{ role.user|user_link }}{{ role.user|user_flags }} {{ role.year or '–' }} {{ role.category or '–' }} {{ role.seq or '–' }} {% if inherited %} {{ role.place.type_name() }} {{ role.place.name_or_id() }} {% else %} {% if role.assigned_by_user %}{{ role.assigned_by_user|user_link }}{% else %}systém{% endif %} {% endif %} {% endfor %}
{% else %} Žádné. {% endif %} {% endmacro %} {% block body %} {{ show_roles("Přidělené role", assigned_roles, False) }} {{ show_roles("Zděděné role", inherited_roles, True) }} {% endblock %}