aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
authorGravatar Dave Z <dzaikos@users.noreply.github.com>2018-08-28 23:44:34 -0400
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-08-28 20:44:34 -0700
commit5341bbcbe27fd8a9e73f4eeb18319daf5421dcb4 (patch)
tree3e905f97ac2c4d086f990d674072e916d74fc081 /template/html
parent4f62a704e2cb77e2c9d99c6f9fa45f3485cf0af7 (diff)
Add toggle status button to entry page
Diffstat (limited to 'template/html')
-rw-r--r--template/html/entry.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/template/html/entry.html b/template/html/entry.html
index 8159874..a368e24 100644
--- a/template/html/entry.html
+++ b/template/html/entry.html
@@ -1,7 +1,7 @@
{{ define "title"}}{{ .entry.Title }}{{ end }}
{{ define "content"}}
-<section class="entry">
+<section class="entry" data-id="{{ .entry.ID }}">
<header class="entry-header">
<h1>
<a href="{{ .entry.URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .entry.Title }}</a>
@@ -10,6 +10,15 @@
<ul>
<li>
<a href="#"
+ title="{{ t "Change entry status" }}"
+ data-toggle-status="true"
+ data-label-read="✔ {{ t "Read" }}"
+ data-label-unread="✘ {{ t "Unread" }}"
+ data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
+ >{{ if eq .entry.Status "read" }}✘ {{ t "Unread" }}{{ else }}✔ {{ t "Read" }}{{ end }}</a>
+ </li>
+ <li>
+ <a href="#"
data-toggle-bookmark="true"
data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
data-label-loading="{{ t "Saving..." }}"