aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/common/layout.html
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/html/common/layout.html
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/html/common/layout.html')
-rw-r--r--template/html/common/layout.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index ca19313..aa86938 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -40,10 +40,11 @@
</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>