lesetagebuch/templates/book.html

37 lines
826 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title> Lesetagebuch: {{book.title}} </title>
<style>
table.bookmarks {
width: clamp(24ch, 90vw, 80ch)
}
td.pagenr {
text-align: right;
}
</style>
</head>
<body>
<h1>{{ book.title }}</h1>
<form method="post" action="{{ url_for('bookmark', id=book.id) }}">
<input name="page">
<input type="submit">
</form>
<table class="bookmarks">
{% for bookmark in bookmarks %}
<tr>
<td class="timestamp">
{{bookmark.ts.strftime("%Y-%m-%d %H:%M%z")}}
</td>
<td class="pagenr">
{{bookmark.page}}
</td>
</tr>
{% endfor %}
</table>
</body>
</html>