forgot to add main.html

This commit is contained in:
Adam Goldsmith 2015-08-08 19:30:45 -04:00
parent f00fe1e54a
commit e1a599317a
1 changed files with 18 additions and 0 deletions

18
templates/main.html Normal file
View 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>