all repos — flounder @ 0e234b1c3807aaf2a03d3e1755b90a6fc1e5e7d3

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>