prompt 8
This commit is contained in:
@@ -23,7 +23,9 @@
|
||||
<nav>
|
||||
<a href="/" class="{{if eq .NavSection "public"}}active{{end}}">Public</a>
|
||||
<a href="/private" class="{{if eq .NavSection "private"}}active{{end}}">Private</a>
|
||||
{{if and .CurrentUser (eq .CurrentUser.Role "admin")}}
|
||||
<a href="/admin" class="{{if eq .NavSection "admin"}}active{{end}}">Admin</a>
|
||||
{{end}}
|
||||
{{if .CurrentUser}}
|
||||
<form action="/logout" method="post" style="margin-left:auto;">
|
||||
<button type="submit">Logout</button>
|
||||
|
||||
Reference in New Issue
Block a user