{# The rules list, the add form and the matrix, shared by the admin page and a person's own settings. The caller sets `rules_action` (where the add form and the deletes post), and passes `rules`, `model_ids`, `matrix`, `matrix_models`, `any_model`, `allow` and `deny`. The delete buttons reach one empty form each by `form=`, declared outside the add form, so no form is ever nested inside another -- a nested
truncates its parent, the 1.3.0 bug. #} {% from "_macros.html" import icon %} {% if rules %}
{% else %}

{{ t("No rules yet.") }}

{% endif %}

{{ t("The chat's own model.") }}

{{ t("A crowd member, a friend it asks, a model on its roster.") }}

{% if matrix_models|length > 1 %}

{{ t("Who may talk to whom") }}

{{ t("Rows are the chat's own model, columns the model it would bring in. Drawn by the same rules that are enforced, so what this shows is what happens.") }}

{% for model in matrix_models %}{% endfor %} {% for row in matrix %} {% for cell in row.cells %} {% if cell is none %} {% elif cell.offered %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ model.model_id }}
{{ row.main.model_id }}ยทโœ“โœ—
{% endif %}