{# Template created in 6/26/15 at 2:22 PM #}
{# by User mnach #}
{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org=
/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <title>{{ title }}</title>
</head>
<body>
    <h3>{% trans "New Block Rules have been created" %}</h3>
    <p>
        {% trans "List of Rules which have been created automatically is given in a table below." %}

        {% if enable %}
            {% trans "Those rules will be applied immediately on the strength of site settings!" %}
        {% else %}
            {% trans "Please note that those rules doesn't apply until it will be confirmed in admin site." %}
        {% endif %}
    </p>
    <table>
        <thead>
            <tr>
                <th>{% trans "Is Enabled?" %}</th>
                <th>{% trans "IP address" %}</th>
                <th>{% trans "User Angent" %}</th>
                <th>{% trans "Method" %}</th>
                <th>{% trans "View" %}</th>
                <th>{% trans "Path" %}</th>
            </tr>
        </thead>
        <tbody>
            {% for rule in rules %}
                <tr>
                    <td>
                        {% if rule.enabled %}
                            {% trans "Enabled" %}
                        {% else %}
                            {% trans "Disabled" %}
                        {% endif %}
                    </td>
                    <td>{{ rule.ip|default:"-" }}</td>
                    <td>{{ rule.user_agent|default:"-" }}</td>
                    <td>{{ rule.method|default:"-" }}</td>
                    <td>{{ rule.view|default:"-" }}</td>
                    <td>{{ rule.path|default:"-" }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <p>
        <small>
            {% trans "You get this message because your email have been listed in site settings at " %}
            {% if site %}
                <a href="http://{{ site.domain }}/">{{ site.name }}</a>.
            {% else %}
                {% trans 'unknown site.' %}
            {% endif %}
            {% trans "Please contact site administrators to unsubscribe." %}
        </small>
    </p>
</body>
</html>