aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/common.go
diff options
context:
space:
mode:
authorGravatar Pascal Widdershoven <pascal@kabisa.nl>2018-05-21 12:38:44 +0200
committerGravatar Pascal Widdershoven <pascal@kabisa.nl>2018-05-21 12:51:43 +0200
commit44decae557a6f78eda57b8f407d35b10233538e4 (patch)
treef3a9421e99a675ddfa63045fdf465d0bd2bf5f1c /template/common.go
parent7f2fd1fdd85a62b187ad901d4917e561e39e37b2 (diff)
Fix unread count in menu not triggering click
By moving unread count into anchor. Previously, clicking the unread count would not cause the anchor to be invoked. This was confusing. This change includes the unread count span in the anchor.
Diffstat (limited to 'template/common.go')
-rw-r--r--template/common.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/template/common.go b/template/common.go
index ecb1bd2..986e0a2 100644
--- a/template/common.go
+++ b/template/common.go
@@ -1,5 +1,5 @@
// Code generated by go generate; DO NOT EDIT.
-// 2018-05-20 15:22:33.793709932 -0700 PDT m=+0.025180445
+// 2018-05-21 12:40:10.613112 +0200 CEST m=+0.010961753
package template
@@ -115,10 +115,11 @@ var templateCommonMap = map[string]string{
</div>
<ul>
<li {{ if eq .menu "unread" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g u" }}">
- <a href="{{ route "unread" }}" data-page="unread">{{ t "Unread" }}</a>
- {{ if gt .countUnread 0 }}
- <span class="unread-counter-wrapper">(<span class="unread-counter">{{ .countUnread }}</span>)</span>
- {{ end }}
+ <a href="{{ route "unread" }}" data-page="unread">{{ t "Unread" }}
+ {{ if gt .countUnread 0 }}
+ <span class="unread-counter-wrapper">(<span class="unread-counter">{{ .countUnread }}</span>)</span>
+ {{ end }}
+ </a>
</li>
<li {{ if eq .menu "starred" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g b" }}">
<a href="{{ route "starred" }}" data-page="starred">{{ t "Starred" }}</a>
@@ -223,6 +224,6 @@ var templateCommonMap = map[string]string{
var templateCommonMapChecksums = map[string]string{
"entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
"item_meta": "6cff8ae243f19dac936e523867d2975f70aa749b2a461ae63f6ebbca94cf7419",
- "layout": "c7565e2cf904612e236bc1d7167c6c124ffe5d27348608eb5c2336606f266896",
+ "layout": "2226ad243581d200b3d9499787a5ba38d6b2fff38d2ce86a40eb395a6efc17de",
"pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
}