{% extends "base.html"%} {% load i18n %} {% load i18n %} {% block extrahead %} {% endblock %} {% block brcrmb_container %} {% endblock %} {% block content %}
{% if violation %}
You have no rights to access this area. Please contact your administrator
{% else %} {% block subcontent %}

{% trans "Users - Rules" %}


{% if users %} {% for user in users %} {% endfor %}
{% trans "Username" %} {% trans "Email" %} {% trans "Name" %} {% trans "Status" %} {% trans "Peer" %}
{{user.username}} {{user.email}} {{user.first_name}} {{user.last_name}} {% if user.registrationprofile_set.all %}{% if user.registrationprofile_set.all.0.activation_key == "ALREADY_ACTIVATED" %}{% trans "Active" %}{% else %}{% trans "Inactive" %} or {% trans "Key Expired" %}{% endif %}{% else %}-{% endif %} {% if user.get_profile.peer %}{{user.get_profile.peer}}{% endif %}
{% endif %}
{% if routes %} {% 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" %}
{{ route.pk }} {% if route.comments %}{{ route.name }}{% else %}{{ route.name }}{% endif %} {{ 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' %}DEACTIVATED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}{% else %}{% if route.status == 'ACTIVE' %}{{route.status}}{% else %}{% if route.status == 'PENDING' %}{{route.status}}{% else %}{{route.status}}{% endif %}{% endif %}{% endif %}{{ route.response }}{{ route.applier }} {{ route.expires|date:"d M y" }} {% 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 %}
{% endif %}
{% endblock %} {% endif %}
{% endblock %}