mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
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.
This commit is contained in:
parent
7f2fd1fdd8
commit
44decae557
4 changed files with 16 additions and 14 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue