Skip to content

Commit 5ffd511

Browse files
committed
templates/base/head_navbar.tmpl: Color toplevel navbar red if user .IsAdmin
1 parent 2beaedc commit 5ffd511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/head_navbar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{$notificationUnreadCount = call .NotificationUnreadCount}}
44
{{end}}
55

6-
<nav id="navbar" aria-label="{{ctx.Locale.Tr "aria.navbar"}}">
6+
<nav id="navbar" {{if .IsAdmin}}style="background-color: #ff0000"{{else}}{{end}} aria-label="{{ctx.Locale.Tr "aria.navbar"}}">
77
<div class="navbar-left">
88
<!-- the logo -->
99
<a class="item" id="navbar-logo" href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}">

0 commit comments

Comments
 (0)