mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-14 16:26:23 -07:00
29 lines
907 B
HTML
29 lines
907 B
HTML
<fieldset><legend>Announcements</legend>
|
|
{{range $a, $announcement := $.announcements}}
|
|
<div class="announcement">
|
|
<b>{{$announcement.Subject}}</b> — <small>by {{$announcement.Staff}} at {{formatTimestamp $announcement.Timestamp}} </small><br />
|
|
{{$announcement.Message}}
|
|
</div>
|
|
{{if gt (len $.announcements) (add $a 1)}}<hr />{{end}}
|
|
{{else}}
|
|
<i>No announcements</i>
|
|
{{end}}
|
|
</fieldset><br />
|
|
<fieldset><legend>Boards</legend>
|
|
{{with $.boards}}
|
|
<ul>
|
|
{{range $b, $board := $.boards}}
|
|
<li><a href="{{webPathDir $board.Dir}}">/{{$board.Dir}}/</a> - {{$board.Title}}</li>
|
|
{{end}}
|
|
</ul>
|
|
{{else}}
|
|
<i>No boards</i>
|
|
{{end}}
|
|
</fieldset><br />
|
|
<fieldset><legend>Staff actions (role: {{$.rankString}})</legend>
|
|
<ul>
|
|
{{range $a, $action := $.actions}}
|
|
{{if ne $action.Title "Dashboard"}}<li><a href="{{webPath "/manage" $action.ID}}">{{$action.Title}}</a> </li>{{end}}
|
|
{{end}}
|
|
</ul>
|
|
</fieldset>
|