aboutsummaryrefslogtreecommitdiff
path: root/static/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/index.html b/static/index.html
index 106a6b3..61aeab8 100644
--- a/static/index.html
+++ b/static/index.html
@@ -44,7 +44,8 @@
{{ 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 }}