Jacek Kowalski
4 hours ago 6b9278a5d57091fce636dbb640b380cfb990db6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% 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 %}