{% extends 'settings/layout.html' %} {% load i18n %} {% load utilities %} {% block title %} {% trans "Auto-moderation rules" %} {% endblock %} {% block header %} {% trans "Auto-moderation rules" %} {% endblock %} {% block panel %}

{% trans "Auto-moderation rules will create reports for any local user or status with fields matching the provided string." %} {% trans "Users or statuses that have already been reported (regardless of whether the report was resolved) will not be flagged." %} {% trans "At this time, reports are not being generated automatically, and you must manually trigger a scan." %}

{% csrf_token %}
{% if success %}
{% trans "Successfully added rule" %}
{% endif %}

{% trans "Add Rule" %}

{% csrf_token %}
{{ form.string_match }} {% include 'snippets/form_errors.html' with errors_list=form.string_match.errors id="desc_string_match" %}

{% trans "Current Rules" %}

{% trans "Show rules" %} ({{ rules.count }})
{% for rule in rules %} {% endfor %}
{{ rule.string_match }} {{ rule.flag_users|yesno }} {{ rule.flag_statuses|yesno }}
{% csrf_token %}
{% endblock %}