2015-08-08 19:30:45 -04:00
|
|
|
<!doctype html>
|
|
|
|
<title>Test App</title>
|
|
|
|
<table border="1">
|
|
|
|
<tr>
|
|
|
|
<th> cover </th>
|
|
|
|
{% for datum in attributes %}
|
|
|
|
<th> {{ datum }} </th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for book in books %}
|
|
|
|
<tr>
|
2015-08-09 20:13:44 -04:00
|
|
|
<td> <img height="100px" width="50px" src="{{ url_for('static', filename="library_files/" + book["cover"]) }}"> </td>
|
2015-08-08 19:30:45 -04:00
|
|
|
{% for datum in attributes %}
|
|
|
|
<td> <a href="/book/{{book["id"]}}"> {{ book[datum] }} </a> </td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|