all repos — flounder @ f516ef62ea08f7a54e40aabba9931f65d87dde05

A small site builder for the Gemini protocol

templates/nav.html (view raw)

 1<nav>
 2  <a href="/">home</a>
 3{{ if .AuthUser.LoggedIn }}
 4  <a href="/my_site">my_site</a>
 5  <a href="/me">me</a>
 6  {{ if .AuthUser.IsAdmin }}
 7  <a href="/admin">admin</a>
 8  {{ end }}
 9  <a href="/logout">logout</a>
10  {{ if .AuthUser.ImpersonatingUser }}
11  <em><b>({{.AuthUser.Username}} impersonated by {{.AuthUser.ImpersonatingUser}})</b></em>
12  {{ end }}
13{{ else }}
14  <a href="/register">register</a>
15  <a href="/login">login</a>
16
17{{ end }}
18</nav>