1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-14 16:26:23 -07:00
gochan/templates/manage_dashboard.html

30 lines
907 B
HTML
Raw Normal View History

<fieldset><legend>Announcements</legend>
2022-01-07 14:44:42 -08:00
{{range $a, $announcement := $.announcements}}
<div class="announcement">
<b>{{$announcement.Subject}}</b><small>by {{$announcement.Staff}} at {{formatTimestamp $announcement.Timestamp}} </small><br />
2022-01-07 14:44:42 -08:00
{{$announcement.Message}}
</div>
2022-01-07 14:44:42 -08:00
{{if gt (len $.announcements) (add $a 1)}}<hr />{{end}}
{{else}}
<i>No announcements</i>
{{end}}
</fieldset><br />
<fieldset><legend>Boards</legend>
2022-01-07 14:44:42 -08:00
{{with $.boards}}
<ul>
2022-01-07 14:44:42 -08:00
{{range $b, $board := $.boards}}
<li><a href="{{webPathDir $board.Dir}}">/{{$board.Dir}}/</a> - {{$board.Title}}</li>
2022-01-07 14:44:42 -08:00
{{end}}
</ul>
2022-01-07 14:44:42 -08:00
{{else}}
<i>No boards</i>
{{end}}
</fieldset><br />
2022-07-25 14:13:33 -07:00
<fieldset><legend>Staff actions (role: {{$.rankString}})</legend>
<ul>
2022-01-07 14:44:42 -08:00
{{range $a, $action := $.actions}}
{{if ne $action.Title "Dashboard"}}<li><a href="{{webPath "/manage" $action.ID}}">{{$action.Title}}</a> </li>{{end}}
2022-01-07 14:44:42 -08:00
{{end}}
</ul>
</fieldset>