summaryrefslogtreecommitdiffstats
path: root/src/view
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-09-08 00:54:36 -0700
committerGravatar Tom Willemse2026-09-08 00:54:36 -0700
commitcababf71f9411266191d4b1295c030ea533c942c (patch)
tree407c8c5424263d8563b3713b8cabfd953bbd4a2b /src/view
parent528cbf2ef570894aaf919ed3da0d3cd129a2c8e8 (diff)
downloadlezer-cababf71f9411266191d4b1295c030ea533c942c.tar.gz
lezer-cababf71f9411266191d4b1295c030ea533c942c.zip
Add reading session and progress tables
Each book can have multiple reading sessions, when something is re-read later. Each session has multiple progress updates. Each progress update has a separate total number of pages because the total can change for ebooks depending on the device and the settings that are used.
Diffstat (limited to 'src/view')
-rw-r--r--src/view/main.phel6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/main.phel b/src/view/main.phel
index 809b765..decd4d5 100644
--- a/src/view/main.phel
+++ b/src/view/main.phel
@@ -44,7 +44,11 @@
(for [b :in books]
[:li (:title (:book b))
" by "
- (authors-list (:authors b) router)])]]
+ (authors-list (:authors b) router)
+ " "
+ [:form {:action (str "/book/" (:id (:book b)) "/session")
+ :method "POST"}
+ [:button "Start"]]])]]
[:aside
[:h2 "Add new book"]
[:div {:class "flex-center position-ref full-height"}