1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-06 11:46:24 -07:00

Show staff name and timestamp for announcements on dashboard

This commit is contained in:
Eggbertx 2023-09-03 16:56:23 -07:00
parent b80c8b3f76
commit 7813964f08

View file

@ -1,7 +1,7 @@
<fieldset><legend>Announcements</legend>
{{range $a, $announcement := $.announcements}}
<div class="announcement">
<b>{{$announcement.Subject}}</b><br />
<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}}