{% extends "base.html" %} {% load i18n %} {% block extrahead %} {% if user.is_authenticated %} {% endif %} {% endblock %} {% block title %}{% trans "My rules" %}{% endblock %} {% block content %} {% csrf_token %}
Id | {% trans "Name" %} | {% trans "Match" %} | {% trans "Then" %} | {% trans "Status" %} | {% comment %}{% trans "Details" %} | {% endcomment %}{% trans "Applier" %} | {% trans "Expires" %} | {% trans "Response" %} | {% trans "Actions" %} |
---|---|---|---|---|---|---|---|---|---|
{{ route.pk }} | {{ route.name }} | {{ route.get_match|safe|escape }} | {{route.get_then|safe|escape}} | {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%} {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}SUSPENDED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %} {% else %}{{route.status}}{% endif %} | {% comment %}{{ route.response }} | {% endcomment %}{{ route.applier }} | {{ route.expires }} | {% if route.status == 'EXPIRED' %}{% trans "Rule expired" %}{% else %}{% if route.status == 'ADMININACTIVE' %}{% trans "Suspended by administrator" %}{% else %}{% if route.status == 'INACTIVE' %}{% trans "Suspended by user" %}{% else %}{{ route.response }}{% if route.status == 'PENDING' %}{% endif %}{% endif %}{% endif %}{% endif %} | {% ifequal route.status 'ACTIVE' %} {% trans "Edit" %} {% else %} {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %} {% trans "Reactivate" %} {% else %} {% ifequal route.status 'OUTOFSYNC' %} {% trans "ReSync" %} {% else %} {% ifequal route.status 'ERROR' %} {% trans "Fix it!" %} {% else %} - {% endifequal %} {% endifequal %} {% endif %} {% endifequal %} |
{% blocktrans %}You are about to suspend rule{% endblocktrans %}
{% blocktrans %}Suspending the rule will automatically remove the configuration from the network and mark this rule as inactive.{% endblocktrans %}
{% blocktrans %}Are you sure you want to proceed?{% endblocktrans %}