From a87235f8b978126c0ca9f9eb252f58e6de17622c Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 4 Jun 2022 23:31:12 -0700 Subject: news CRUD working --- views/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/index.html') diff --git a/views/index.html b/views/index.html index 2bfed28..00ebfb9 100644 --- a/views/index.html +++ b/views/index.html @@ -28,9 +28,10 @@ {{ if .page.NewsItems }}

{{ .page.PreferredUsername }} News

+ {{ $page := .page }} {{ range $i, $e := .page.NewsItems }}
-

{{unixtoreadable $e.Time}} - {{$e.Title}}{{ if $.Board.ModCred }} [Delete] {{end}}

+

{{unixtoreadable $e.Time}} - {{$e.Title}}{{ if $page.Board.ModCred }} [Delete] {{end}}


{{$e.Content}}

-- cgit v1.2.3