From cababf71f9411266191d4b1295c030ea533c942c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 8 Sep 2026 00:54:36 -0700 Subject: 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. --- src/view/main.phel | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/view') 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"} -- cgit v1.3-2-g0d8e