all repos — flounder @ 7fb85e980b64e8ef57c69fe8c368cf82a32e217e

A small site builder for the Gemini protocol

templates/nav.html (view raw)

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