summaryrefslogtreecommitdiff
path: root/internal/web/templates/reader.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/reader.html')
-rw-r--r--internal/web/templates/reader.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/web/templates/reader.html b/internal/web/templates/reader.html
index af29e65..7e506c2 100644
--- a/internal/web/templates/reader.html
+++ b/internal/web/templates/reader.html
@@ -21,6 +21,7 @@
hx-get="/reader" hx-target="#reader-root" hx-select="#reader-root" hx-swap="outerHTML" hx-trigger="change">
<a class="nav-link" href="/">&larr; {{.L.BannerReadings}}</a>
<a class="nav-link" href="/settings">settings</a>
+ <a class="nav-link" href="/bookmarks">bookmarks</a>
<label>{{.L.WebBook}}
<select name="book">
@@ -54,6 +55,14 @@
</label>
</form>
+ <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="text" name="note" placeholder="note">
+ <input type="text" name="tags" placeholder="tags, comma-separated">
+ <button type="submit">★ bookmark</button>
+ </form>
+
{{/* #pane is OUTSIDE the form so its reading text inherits body's
--font-reading (mono-responsive), not the form's --font-ui. It stays
inside #reader-root so an hx-select swap re-renders it with the controls. */}}