all repos — flounder @ b9a8645bc1f8102bacd11b8bb1da8c2876511e89

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