{% extends "base.html" %} {% load i18n %} {% block extrahead %} {% if user.is_authenticated %} {% endif %} {% endblock %} {% block title %}{% trans "My rules" %}{% endblock %} {% block content %} {% csrf_token %}

{% trans "My rules" %}

{% trans "Add Rule" %}

{% comment %}{% endcomment %} {% for route in routes %} {% comment %}{% endcomment %} {% endfor %}
Id {% trans "Name" %} {% trans "Match" %} {% trans "Then" %} {% trans "Status" %}{% trans "Details" %}{% 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 %}{{ route.response }}{{ 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 %}

{% include "poll.html" %}
{% endblock %}