aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/feed_entries.html
diff options
context:
space:
mode:
authorGravatar Adam Vigneaux <adam@adamvig.com>2018-09-08 21:40:23 -0400
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-08 18:40:23 -0700
commit07cd7d2135b13ea211ce7d950ef903b85f190f85 (patch)
tree38a9d403fcda2632c542da6d0e477d509f5f2b77 /template/html/feed_entries.html
parenteee1f3190355224eef63a4dcdef8c36eb3ca3738 (diff)
Add "Mark this page as read" to the bottom
This better matches the most common use case for the "Mark this page as read" link, which is to click it once you have reached the bottom of the page. Especially on mobile, it can be annoying to scroll to the top of the page to click the link.
Diffstat (limited to 'template/html/feed_entries.html')
-rw-r--r--template/html/feed_entries.html19
1 files changed, 14 insertions, 5 deletions
diff --git a/template/html/feed_entries.html b/template/html/feed_entries.html
index 6b5d845..1759874 100644
--- a/template/html/feed_entries.html
+++ b/template/html/feed_entries.html
@@ -4,17 +4,17 @@
<section class="page-header">
<h1>{{ .feed.Title }} ({{ .total }})</h1>
<ul>
+ {{ if .entries }}
<li>
- <a href="{{ route "refreshFeed" "feedID" .feed.ID }}">{{ t "Refresh" }}</a>
+ <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
</li>
+ {{ end }}
<li>
- <a href="{{ route "editFeed" "feedID" .feed.ID }}">{{ t "Edit" }}</a>
+ <a href="{{ route "refreshFeed" "feedID" .feed.ID }}">{{ t "Refresh" }}</a>
</li>
- {{ if .entries }}
<li>
- <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
+ <a href="{{ route "editFeed" "feedID" .feed.ID }}">{{ t "Edit" }}</a>
</li>
- {{ end }}
</ul>
</section>
@@ -42,6 +42,15 @@
</article>
{{ end }}
</div>
+ <section class="page-footer">
+ {{ if .entries }}
+ <ul>
+ <li>
+ <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
+ </li>
+ </ul>
+ {{ end }}
+ </section>
{{ template "pagination" .pagination }}
{{ end }}