<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>
