aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates')
-rw-r--r--internal/web/templates/bookmarks.html2
-rw-r--r--internal/web/templates/reader.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/internal/web/templates/bookmarks.html b/internal/web/templates/bookmarks.html
index f51515b..3597b74 100644
--- a/internal/web/templates/bookmarks.html
+++ b/internal/web/templates/bookmarks.html
@@ -33,7 +33,7 @@
<div class="bookmarks">
{{range .Items}}
<div class="bookmark">
- <a href="/reader?book={{.Book}}&chap={{.Chapter}}">{{.Display}} {{.Chapter}}</a>
+ <a href="/reader?book={{.Book}}&chap={{.Chapter}}">{{.Display}} {{.Chapter}}{{if .Verse}}:{{.Verse}}{{end}}</a>
{{if .Note}}<span class="note">{{.Note}}</span>{{end}}
{{if .Tags}}<span class="tags">{{range .Tags}}#{{.}} {{end}}</span>{{end}}
<form method="post" action="/bookmarks/delete">
diff --git a/internal/web/templates/reader.html b/internal/web/templates/reader.html
index 7e506c2..02ecf38 100644
--- a/internal/web/templates/reader.html
+++ b/internal/web/templates/reader.html
@@ -58,6 +58,7 @@
<form class="bookmark-add" method="post" action="/reader/bookmark">
<input type="hidden" name="book" value="{{.Book}}">
<input type="hidden" name="chap" value="{{.Chap}}">
+ <input type="number" name="verse" min="1" placeholder="verse (optional)">
<input type="text" name="note" placeholder="note">
<input type="text" name="tags" placeholder="tags, comma-separated">
<button type="submit">★ bookmark</button>