45 lines
968 B
HTML
Executable File
45 lines
968 B
HTML
Executable File
{% extends 'base.html' %}
|
|
|
|
{% block main %}
|
|
<div class="container">
|
|
<h1 class="page-header">All Books</h1>
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
<div class="alert alert-success">
|
|
<ul>
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<table style="width:100%">
|
|
<tr>
|
|
<th>Cover</th>
|
|
<th>Title</th>
|
|
<th>Author</th>
|
|
<th>Filetype</th>
|
|
<th>Tag</th>
|
|
</tr>
|
|
{% for book in books %}
|
|
<tr>
|
|
<td><img src="../uploads/cover/{{ book.cover }}" width="80"></td>
|
|
<td><a href="books/{{ book.id }}">{{ book.title }}</a></td>
|
|
|
|
<td> {% for author in book.author %}
|
|
|
|
<li> {{ author.author_name }}</li>
|
|
|
|
{% endfor %}</td>
|
|
<td>{{ book.fileformat }}</td>
|
|
<td>{{ book.tag}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|