summaryrefslogtreecommitdiffstats
path: root/src/view/main.phel
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-09-09 22:57:41 -0700
committerGravatar Tom Willemse2026-09-09 22:57:41 -0700
commit3ee724eb0c4d681e81f6d915b88fa5985957b27a (patch)
tree9acc75aceaadf2d1ead9f26bd184eeb9e69f5398 /src/view/main.phel
parentf78b4b0eedbcff9994580bfddaead52301cca37f (diff)
downloadlezer-3ee724eb0c4d681e81f6d915b88fa5985957b27a.tar.gz
lezer-3ee724eb0c4d681e81f6d915b88fa5985957b27a.zip
Add page for each book
Diffstat (limited to 'src/view/main.phel')
-rw-r--r--src/view/main.phel4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/main.phel b/src/view/main.phel
index e25a079..9301bbc 100644
--- a/src/view/main.phel
+++ b/src/view/main.phel
@@ -31,7 +31,9 @@
[:main
[:ul
(for [b :in books]
- [:li (:title (:book b))
+ [:li
+ [:a {:href (r/generate router :book {:id (:id (:book b))})}
+ (:title (:book b))]
" by "
(authors-list (:authors b) router)
" "