{% extends 'base.html.twig' %}

{% block title %}{% trans %}ousted_list_title{% endtrans %}{% endblock %}

{% block content %}
	<div class="page_content">
		<h2>{% trans %}ousted_list_title{% endtrans %}</h2>
		<p><a class="btn" href="{{ path('ousted_bulk') }}">{% trans %}bulk_oust_page_title{% endtrans %}</a></p>

		{% if pagination.getTotalItemCount() == 0 %}
			<p>{% trans %}ousted_list_empty{% endtrans %}</p>
		{% endif %}
	</div>

	{% if pagination.getTotalItemCount() > 0 %}
		<div class="results">
			{% for book in pagination %}
				{% embed 'book/_tile.html.twig' with {show_path: 'ousted_show'} %}
					{% block status %}
						<span class="label label-rounded label-error">{% trans %}ousted_status{% endtrans %}: {{ book.reason }}</span>
					{% endblock %}
					{% block actions %}
						<a class="btn btn-link" href="{{ show_url }}">{% trans %}book_action_more{% endtrans %}</a>
					{% endblock %}
				{% endembed %}
			{% endfor %}

			{{ knp_pagination_render(pagination) }}
		</div>
	{% endif %}
{% endblock %}
