47 lines
1.1 KiB
HTML
47 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Books — CalibreSync{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<h1>Books <span class="muted">({{ total }})</span></h1>
|
|
</div>
|
|
|
|
{% if books %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Filename</th>
|
|
<th>Status</th>
|
|
<th>Source zip</th>
|
|
<th>Uploaded</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for b in books %}
|
|
<tr>
|
|
<td>{{ b.filename }}</td>
|
|
<td><span class="badge badge-{{ b.status }}">{{ b.status }}</span></td>
|
|
<td class="mono small muted">{{ b.zip_source or "—" }}</td>
|
|
<td>{{ b.uploaded_at[:19].replace("T"," ") if b.uploaded_at else "—" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if pages > 1 %}
|
|
<div class="pagination">
|
|
{% if page > 1 %}
|
|
<a href="/books?page={{ page - 1 }}">« Prev</a>
|
|
{% endif %}
|
|
<span>Page {{ page }} of {{ pages }}</span>
|
|
{% if page < pages %}
|
|
<a href="/books?page={{ page + 1 }}">Next »</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
<p class="muted">No books recorded yet.</p>
|
|
{% endif %}
|
|
{% endblock %}
|