{% extends 'settings/layout.html' %} {% load i18n %} {% load humanize %} {% 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." %}

{% if task %}
{% trans "Schedule:" %}
{{ task.schedule }}
{% trans "Last run:" %}
{{ task.last_run_at|naturaltime }}
{% trans "Total run count:" %}
{{ task.total_run_count }}
{% trans "Enabled:" %}
{{ task.enabled|yesno }}
{% csrf_token %}
{% csrf_token %}

{% trans "Last run date will not be updated" %}

{% else %}

{% trans "Schedule scan" %}

{% csrf_token %}
{{ task_form.every }}

{{ task_form.every.help_text }}

{{ task_form.period }}

{{ task_form.period.help_text }}

{% endif %}
{% 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 %}