{% extends "rules/base.html" %} {% block sidebar %}

Defined sources

{% if perms.rules.source_edit %}

Actions

{% endif %} {% endblock %} {% block content %} {% if sources %}
{{ sources|length }} Source{{ sources|length|pluralize }}
{% for source in sources %}
{% if perms.rules.ruleset_policy_view %} {% else %} {% endif %} {% if perms.rules.source_edit or perms.rules.ruleset_update_push or perms.rules.source_view %} {% endif %}
{% if source.method == 'http' %} {% else %} {% endif %}
{{ source.name }}
Last update: {{ source.updated_date }}.
{{ source.cats_count }} Categor{{ source.cats_count|pluralize:"y,ies" }}
{{ source.rules_count }} Rule{{ source.rules_count|pluralize }}
{% endfor %}
{% else %}

No defined source

You need at least a source to be able to create a Ruleset.

{% if perms.rules.source_edit %} {% else %}

Ask user with access to create one.

{% endif %} {% endif %} {% endblock %}