{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} {% extends 'themes/' + theme() + '/base.html' %} {% else %} {% extends "base.html" %} {% endif %} %} {% from 'bootstrap/form.html' import render_form %} {% block app_content %}
{% if search == '' %}

{{ _('All known domains') }}

{% else %}

{{ _('Domains containing %(search)s', search=search) }}

{% endif %}
{% for domain in domains %} {% endfor %}
Domain # Posts Status Actions
{{ domain.name }} {{ domain.post_count }} {{ 'Banned'|safe if domain.banned else 'Allowed'|safe }} {% if domain.blocked_by(current_user) %} {{ _('Unblock') }} {% else %} {{ _('Block') }} {% endif %} {% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %} {% if domain.banned %} {{ _('Unban') }} {% else %} {{ _('Ban') }} {% endif %} {% endif %}
{% endblock %}