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 }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-12-01 22:19:52.660805124 -0800 PST m=+0.022084297
|
||||
// 2017-12-01 22:52:50.615711322 -0800 PST m=+0.016980549
|
||||
|
||||
package template
|
||||
|
||||
|
@ -153,11 +153,13 @@ var templateViewsMap = map[string]string{
|
|||
{{ 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 }}
|
||||
|
@ -534,9 +536,11 @@ var templateViewsMap = map[string]string{
|
|||
<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>
|
||||
|
||||
|
@ -661,11 +665,13 @@ var templateViewsMap = map[string]string{
|
|||
{{ 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 }}
|
||||
|
@ -938,11 +944,13 @@ var templateViewsMap = map[string]string{
|
|||
{{ 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 }}
|
||||
|
@ -1047,7 +1055,7 @@ var templateViewsMapChecksums = map[string]string{
|
|||
"about": "ad2fb778fc73c39b733b3f81b13e5c7d689b041fadd24ee2d4577f545aa788ad",
|
||||
"add_subscription": "098ea9e492e18242bd414b22c4d8638006d113f728e5ae78c9186663f60ae3f1",
|
||||
"categories": "ca1280cd157bb527d4fc907da67b05a8347378f6dce965b9389d4bcdf3600a11",
|
||||
"category_entries": "0bdcf28ef29b976b78d1add431896a8c56791476abd7a4240998d52c3efe1f35",
|
||||
"category_entries": "219d315877664c84edaf4815bd52a76039585570a35b197332cd0a6bc25c4c55",
|
||||
"choose_subscription": "d37682743d8bbd84738a964e238103db2651f95fa340c6e285ffe2e12548d673",
|
||||
"create_category": "2b82af5d2dcd67898dc5daa57a6461e6ff8121a6089b2a2a1be909f35e4a2275",
|
||||
"create_user": "815dd31faaa6e9ba81a2a6664e5707aaf4153c392accd2b1f77cf1937035a881",
|
||||
|
@ -1055,14 +1063,14 @@ var templateViewsMapChecksums = map[string]string{
|
|||
"edit_feed": "c5bc4c22bf7e8348d880395250545595d21fb8c8e723fc5d7cca68e25d250884",
|
||||
"edit_user": "c835d78f7cf36c11533db9cef253457a9003987d704070d59446cb2b0e84dcb9",
|
||||
"entry": "12e863c777368185091008adc851ddc0327317849f1566f7803be2b5bd358fd7",
|
||||
"feed_entries": "9aff923b6c7452dec1514feada7e0d2bbc1ec21c6f5e9f48b2de41d1b731ffe4",
|
||||
"feed_entries": "c2b1b4181a64b8cbacac0e59d9f48906d77a52b5b40f973befb7e67604009198",
|
||||
"feeds": "c22af39b42ba9ca69ea0914ca789303ec2c5b484abcd4eaa49016e365381257c",
|
||||
"history": "947603cbde888516e62925f5d08fb0b13d930623d3ee4c690dbc22612fdda75e",
|
||||
"history": "78bb9b4216c66a7d03cc1407476a8599269c6ee228dcd4b439ace9c94703938b",
|
||||
"import": "73b5112e20bfd232bf73334544186ea419505936bc237d481517a8622901878f",
|
||||
"integrations": "c485d6d9ed996635e55e73320610e6bcb01a41c1153e8e739ae2294b0b14b243",
|
||||
"login": "04f3ce79bfa5753f69e0d956c2a8999c0da549c7925634a3e8134975da0b0e0f",
|
||||
"sessions": "878dbe8f8ea783b44130c495814179519fa5c3aa2666ac87508f94d58dd008bf",
|
||||
"settings": "1e2df11f5436eb2d05ae1fae30dd6f1362613011edbfcc79ae8b23854fa348b4",
|
||||
"unread": "b6f9be1a72188947c75a6fdcac6ff7878db7745f9efa46318e0433102892a722",
|
||||
"unread": "f631cec5e3bf0daa9ccce99985aac8f6004ae41330e449d4f927f2179937cb21",
|
||||
"users": "44677e28bb5347799ed0020c90ec785aadec4b1454446d92411cfdaf6e32110b",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue