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:
parent
fb2a73c91e
commit
677ba1eef3
5 changed files with 21 additions and 5 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue