visual cue for banned user in badgemenu
Cette révision appartient à :
Parent
bb585fb323
révision
168fb0f7aa
|
@ -1,6 +1,6 @@
|
|||
{{ import "csrf" }}
|
||||
{{block badge_user()}}
|
||||
<div class="h-user">
|
||||
<div class="h-user {{ if User.IsBanned() }}hidden{{end}}">
|
||||
{{if User.ID > 0 }}
|
||||
<button href="#" class="nav-btn">
|
||||
<div class="user-avatar small">
|
||||
|
@ -12,7 +12,7 @@
|
|||
</span>
|
||||
</button>
|
||||
<div class="user-menu">
|
||||
<a class="nav-btn" href="/user/{{ User.ID }}/{{ User.Username }}">{{ T("profile")}}</a>
|
||||
<a class="nav-btn" href="/user/{{ User.ID }}/{{ User.Username }}">{{ T("profile")}}{{ if User.IsBanned() }} {{T("banned")}}{{end}}</a>
|
||||
<a class="nav-btn notif" href="/notifications">
|
||||
{{ T("my_notifications")}}
|
||||
{{if User.GetUnreadNotifications() > 0}}<span class="badge">({{ User.GetUnreadNotifications() }})</span>{{end}}
|
||||
|
|
Référencer dans un nouveau ticket