all repos — flounder @ 5c25dd5f433771a06e2d3f88173e23bfcdecaf48

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<div class="impersonate">
12  ({{.AuthUser.Username}} impersonated by {{.AuthUser.ImpersonatingUser}})</div>
13  {{ end }}
14{{ else }}
15  <a href="/register">register</a>
16  <a href="/login">login</a>
17
18{{ end }}
19</nav>