aboutsummaryrefslogtreecommitdiff
path: root/views/anews.html
diff options
context:
space:
mode:
authorFChannel <>2022-06-04 23:31:12 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commita87235f8b978126c0ca9f9eb252f58e6de17622c (patch)
tree592002dda3ac9f4ca1514eb0f473d31fb62faa84 /views/anews.html
parente3c83c1ddaea5f42b6fda66d4b86459fd1349b3b (diff)
news CRUD working
Diffstat (limited to 'views/anews.html')
-rw-r--r--views/anews.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/anews.html b/views/anews.html
new file mode 100644
index 0000000..69378d4
--- /dev/null
+++ b/views/anews.html
@@ -0,0 +1,15 @@
+<div style="text-align: center; max-width: 800px; margin: 0 auto;">
+ <h1>{{ .page.Title }}</h1>
+
+ <div class="newsbox" style="margin-top:50px;padding-top:0;">
+ {{ $page := .page }}
+ {{ range $i, $e := .page.NewsItems }}
+ <div class="newsbox-news">
+ <h3><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a>{{ if $page.Board.ModCred }} <a href="/{{ $page.Key }}/newsdelete/{{ $e.Time }}">[Delete] </a>{{end}}</h3>
+ <br>
+
+ <p>{{$e.Content}}</p>
+ </div>
+ {{ end }}
+ </div>
+</div>