{% extends "varnish-bans-manager/core/bans/layout.html" %} {% load i18n %} {% load url from future %} {% load vbm_widget_helpers %} {% load vbm_form_helpers %} {% block title %}{% trans 'Bans' %} > {% trans 'Status' %}{% endblock %} {% block sidebar_section %}status{% endblock %} {% block sidebar_content %} {% if bans == None %}
{% trans "Select a cache in the list below and click the 'view' button to fetch the list of ban expressions currently active in each node." %}
{% endif %}
{% form_cgroup form.cache 'span10' %}
{{ form.cache|add_class:"span12" }}
{% form_ferrors form.cache 'block' %} {% endform_cgroup %}
{% if bans != None %}
{% if errors %}
{%trans "Failed to fetch list of bans in some caching nodes. Please, check out the 'errors' tab for details." %}
{% endif %}
{% if bans.differences %}
{%trans 'Ban expressions shared by all the selected caching nodes.' %}
{% endif %} {% for expression in bans.shared %}
{{ expression }}
{% endfor %}
{% if bans.differences %}
{%trans 'Ban expressions not shared by all the selected caching nodes, broken down by node.' %}
{% for human_cache_name, expressions in bans.differences %}

{{ human_cache_name }}

{% for expression in expressions %}
{{ expression }}
{% endfor %} {% endfor %}
{% endif %} {% if errors %}
{% for human_cache_name, message in errors %}

{{ human_cache_name }} {{ message }}

{% endfor %}
{% endif %}
{% endif %} {% endblock %}