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/partials/top.html | 128 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 views/partials/top.html (limited to 'views/partials/top.html') diff --git a/views/partials/top.html b/views/partials/top.html new file mode 100644 index 0000000..7c03c36 --- /dev/null +++ b/views/partials/top.html @@ -0,0 +1,128 @@ +
+

/{{ .Board.Name }}/ - {{ .Board.PrefName }}

+

{{ .Board.Summary }}

+ {{ $len := len .Posts }} + {{ if eq $len 0 }} + {{ if .Board.InReplyTo }} + + {{ else }} + + {{ end }} +
+
+ + + + + + + + + + + {{ if eq .Board.InReplyTo "" }} + + + + + {{ end }} + + + + + + + + + + + + +
+ [X] +
{{ if .Board.InReplyTo }}{{ end }}
+
Mark sensitive
+
+ +
+ +
+ + + + + + +
+
+ + {{ else }} + + {{ if eq (index .Posts 0).Type "Note" }} + {{ if .Board.InReplyTo }} + + {{ else }} + + {{ end }} + {{ $len := len .Posts }} +
+
+ + + + + + + + + + {{ if eq .Board.InReplyTo "" }} + + + + + {{ end }} + + + + + + + + + + + + +
+ [X] +
{{ if .Board.InReplyTo }}{{ end }}
+
Mark sensitive
+
+ +
+ +
+ + + + + +
+
+ +
+ {{ else }} +

Archived Post

+ {{ end }} + {{ end }} + + -- cgit v1.2.3