From 48fefb76c0a908cc3fa00abc9c090ce3ac8cb560 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 24 Oct 2021 10:40:45 -0700 Subject: gofiber conversion, index, board posts, board post hooked up --- views/npost.html | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 views/npost.html (limited to 'views/npost.html') diff --git a/views/npost.html b/views/npost.html new file mode 100644 index 0000000..5a382ed --- /dev/null +++ b/views/npost.html @@ -0,0 +1,66 @@ +{{ define "header" }} +/{{ .Board.Name }}/ - {{ .PostId }} + + + + + + + + + + + +{{ if (index .Posts 0).Preview }} + + +{{ end }} +{{ end }} + +{{ template "partials/top" .page }} + +{{ $board := .Board }} + +
+ +
+ +{{ template "partials/posts" .page }} + +
+ + + + + {{ if eq (index .page.Posts 0).Type "Note" }} + + {{ end }} + + +
+ + + [Post a Reply] + + {{ $replies := (index .page.Posts 0).Replies }} + {{ $replies.TotalItems }} / {{ $replies.TotalImgs }} +
+ +
+ +{{ template "partials/bottom" .page }} + +{{ define "scripts" }} +{{ template "partials/postscripts" . }} +{{ end }} -- cgit v1.2.3