1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Do not display mark page as read if there is no entry

This commit is contained in:
Frédéric Guillot 2017-12-01 22:55:00 -08:00
parent fb2a73c91e
commit 677ba1eef3
5 changed files with 21 additions and 5 deletions

View file

@ -3,11 +3,13 @@
{{ define "content"}}
<section class="page-header">
<h1>{{ .category.Title }} ({{ .total }})</h1>
{{ if .entries }}
<ul>
<li>
<a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
</li>
</ul>
{{ end }}
</section>
{{ if not .entries }}

View file

@ -10,9 +10,11 @@
<li>
<a href="{{ route "editFeed" "feedID" .feed.ID }}">{{ t "Edit" }}</a>
</li>
{{ if .entries }}
<li>
<a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
</li>
{{ end }}
</ul>
</section>

View file

@ -3,11 +3,13 @@
{{ define "content"}}
<section class="page-header">
<h1>{{ t "History" }} ({{ .total }})</h1>
{{ if .entries }}
<ul>
<li>
<a href="{{ route "flushHistory" }}">{{ t "Flush history" }}</a>
</li>
</ul>
{{ end }}
</section>
{{ if not .entries }}

View file

@ -3,11 +3,13 @@
{{ define "content"}}
<section class="page-header">
<h1>{{ t "Unread" }} ({{ .countUnread }})</h1>
{{ if .entries }}
<ul>
<li>
<a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
</li>
</ul>
{{ end }}
</section>
{{ if not .entries }}