all repos — flounder @ 5f0282a052f57ab57e2e96ca2b7d8a33bb5eb2f5

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>