all repos — flounder @ d105e77524d5c2cb84c198b364de43d0e83cb8f1

A small site builder for the Gemini protocol

templates/user_page.html (view raw)

 1{{$domain := .Domain}}
 2{{template "header" .}}
 3<h1>{{.PageTitle}}!</h1>
 4{{template "nav.html" .}}
 5<h2>All users:</h2>
 6{{ range .Users}}
 7<a href="https://{{.}}.{{$domain}}" class='person-link'>{{.}}</a>
 8{{end}}
 9<h2>Recently updated files:</h2>
10{{ range .Files }}
11<div>
12  <a href="https://{{.Creator}}.{{$domain}}" class='person-link'>
13   {{ .Creator }}</a>
14  <em>{{.UpdatedTime}}</em>
15  <a href="https://{{.Creator}}.{{$domain}}/{{.Name}}">
16   {{ .Name}}
17  </a>
18</div>
19{{end}}
20{{template "footer" .}}