all repos — flounder @ 758676c26d0a87c9354a795aed370bc06b91be6b

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="//{{.AuthUser.Username}}.{{.Config.Host}}/following.gmi">following</a>
 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>