aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-11-17 17:54:42 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-11-17 18:04:14 -0800
commit15fe9c20df7eaab4c1e10461f1a9965eeaf85f0f (patch)
tree54275eb56eea8adcbe2436e30bc352d0bc3bcba8 /template/html
parent789ad8257a84dfaa973ffa5e547cd419d933253d (diff)
Show the number of read and unread entries for each feed
Diffstat (limited to 'template/html')
-rw-r--r--template/html/feeds.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/template/html/feeds.html b/template/html/feeds.html
index f676f23..7d4a428 100644
--- a/template/html/feeds.html
+++ b/template/html/feeds.html
@@ -33,6 +33,9 @@
{{ if .Disabled }} 🚫 {{ end }}
<a href="{{ route "feedEntries" "feedID" .ID }}">{{ .Title }}</a>
</span>
+ <span class="feed-entries-counter">
+ (<span title="{{ t "page.feeds.unread_counter" }}">{{ .UnreadCount }}</span>/<span title="{{ t "page.feeds.read_counter" }}">{{ .ReadCount }}</span>)
+ </span>
<span class="category">
<a href="{{ route "categoryEntries" "categoryID" .Category.ID }}">{{ .Category.Title }}</a>
</span>
@@ -45,11 +48,6 @@
<li>
{{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time>
</li>
- {{ if gt .UnreadCount 0 }}
- <li>
- {{ t "page.feeds.unread" }} <span class="unread-counter">{{ .UnreadCount }}</span>
- </li>
- {{ end }}
</ul>
<ul>
<li>