forgot to add main.html
This commit is contained in:
parent
f00fe1e54a
commit
e1a599317a
18
templates/main.html
Normal file
18
templates/main.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!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>
|
||||
<td> <img height="100px" width="50px" src="{{ url_for('static', filename="library_files/" + book["image"]) }}"> </td>
|
||||
{% for datum in attributes %}
|
||||
<td> <a href="/book/{{book["id"]}}"> {{ book[datum] }} </a> </td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
Loading…
Reference in New Issue
Block a user