all repos — flounder @ 3ec267fae76b5f2ad46f32d84fa27ee67dc2673b

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<style>
13main {
14      background-color: #ffe9ec;
15}
16</style>
17<div class="impersonate">
18  ({{.AuthUser.Username}} impersonated by {{.AuthUser.ImpersonatingUser}})</div>
19  {{ end }}
20{{ else }}
21  <a href="/register">register</a>
22  <a href="/login">login</a>
23
24{{ end }}
25</nav>