index.html (1250B)
1 <html> 2 <head> 3 <title>HiveDAV - Week {{ .Week }}, Year {{ .Year }}</title> 4 <link rel="stylesheet" href="/css/index.css"> 5 <link rel="stylesheet" href="/css/style.css"> 6 </head> 7 <body> 8 <p> 9 Serving week <i>{{ .Week }}</i> of year <i>{{ .Year }}</i> 10 </p> 11 <p> 12 This site is curlable, try <code>`curl {{ .HiveDavHost }}/week/{{ .Year }}/{{ .Week }}`</code> 13 </p> 14 <nav> 15 <ul> 16 <li><a href="/list/{{ .Year }}/{{ .Week }}">List cubicles</a></li> 17 <li><a href="/week/{{ .Year }}/{{ prev .Week }}">Prev week</a></li> 18 <li><a href="/week/{{ .Year }}/{{ next .Week }}">Next week</a></li> 19 </ul> 20 </nav> 21 <table class="calendar"> 22 <tr> 23 {{- range $i, $h := .TableHead }} 24 <th>{{ $h }}</th> 25 {{- end }} 26 </tr> 27 {{- range $i, $r := .Rows }} 28 <tr> 29 <td>{{ index $r 0 }}</td> 30 {{- range $v := mkSlice 1 5 }} 31 <td> 32 {{- with index $r $v -}} 33 <a aria-label="free" href="/book/{{ index $r $v }}" class="free">□</a> 34 {{- else -}} 35 <span aria-label="busy" class="busy">▣</span> 36 {{- end -}} 37 </td> 38 {{- end }} 39 </tr> 40 {{- end }} 41 </table> 42 <footer> 43 HiveDAV <a href="https://code.in0rdr.ch/hivedav/refs.html">{{ .Version }}</a> 🍯 44 </footer> 45 </body> 46 </html>