diff options
Diffstat (limited to 'static/anews.html')
-rw-r--r-- | static/anews.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static/anews.html b/static/anews.html index 6527ce5..127760a 100644 --- a/static/anews.html +++ b/static/anews.html @@ -26,7 +26,9 @@ {{ range $i, $e := .NewsItems }} <tr> - <td><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a> + <td> + {{ if $.Board.ModCred }}<a href="/{{ $.Key }}/newsdelete/{{ $e.Time }}">[Delete] </a>{{end}} + <a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a> {{ if eq $i 0 }} <br><p>{{$e.Content}}</p> {{ end }} |