{% extends "admin/base_site.html" %} {% load i18n admin_urls %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% translate "Channels set up:" %} {{ channels|join:", "|default:"-" }}. {% translate "Resolvers:" %} {% for code, resolver in resolvers %}{{ code }}{% if not forloop.last %}, {% endif %}{% empty %}-{% endfor %}.

{% for row in rows %} {% endfor %}
{% translate "Event" %}{% translate "Fields" %}{% translate "Rules" %}
{{ row.code }}
{{ row.description }}
{{ row.fields|join:", " }} {% for rule in row.rules %}
{{ rule.name }} {% if not rule.enabled %}({% translate "off" %}){% endif %} — {% for channel in rule.channels.all %}{{ channel.channel }}{% if not channel.enabled %} ({% translate "off" %}){% endif %}{% if not forloop.last %}, {% endif %}{% empty %}{% translate "no channel" %}{% endfor %} — {% for recipient in rule.recipients.all %}{{ recipient }}{% if not forloop.last %}, {% endif %}{% empty %}{% translate "no recipient" %}{% endfor %}
{% empty %} {% translate "No rule: nobody is notified." %} {% endfor %}
{% endblock %}