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
<div class="panel book-panel">
    <div class="panel-header">
        <div class="panel-title h5">{% trans %}borrow_history_title{% endtrans %}</div>
    </div>
    <div class="panel-body">
        {% if history is empty %}
            <p class="text-gray">{% trans %}borrow_history_empty{% endtrans %}</p>
        {% else %}
            <table class="table">
                <thead>
                <tr>
                    <th>{% trans %}borrow_who_header{% endtrans %}</th>
                    <th>{% trans %}borrow_at_header{% endtrans %}</th>
                    <th>{% trans %}borrow_till_header{% endtrans %}</th>
                </tr>
                </thead>
                <tbody>
                {% for entry in history %}
                    <tr>
                        <td>{{ entry.who }}</td>
                        <td>{{ entry.at|date('Y-m-d') }}</td>
                        <td>{{ entry.till|date('Y-m-d') }}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        {% endif %}
    </div>
</div>