Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Put notification count in () (#884)

It was an ugly "Notifications 0" before, now it will be "Notifications (0)"
Cette révision appartient à :
kilo 2017-06-02 22:05:41 +02:00 révisé par akuma06
Parent 87117d08de
révision 5f9b780b97

Voir le fichier

@ -8,7 +8,7 @@
</button>
<div class="user-menu">
<a class="nav-btn" href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}">{{call $.T "profile"}}</a>
<a class="nav-btn" href="{{ genRoute "user_notifications" }}">{{ call $.T "my_notifications"}} <span class="badge">{{ .GetUnreadNotifications }}</span></a>
<a class="nav-btn" href="{{ genRoute "user_notifications" }}">{{ call $.T "my_notifications"}} <span class="badge">({{ .GetUnreadNotifications }})</span></a>
<a class="nav-btn" href="{{ genRoute "user_profile_edit" "id" (print .ID) "username" .Username }}">{{call $.T "settings"}}</a>
{{if HasAdmin . }}<a class="nav-btn" href="{{ genRoute "mod_index" }}">{{call $.T "moderation"}}</a>{{end}}
<a class="nav-btn" href="{{ genRoute "user_logout" }}">{{ call $.T "sign_out"}}</a></li>