aboutsummaryrefslogtreecommitdiff
path: root/views/anews.html
diff options
context:
space:
mode:
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>