From 3db517715bef6a53225c5c3c06e8fc5fd0bf71e3 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 24 Apr 2022 00:46:49 -0700 Subject: basic pass over view posts, post, catalog and manage page connections --- views/admin.html | 78 ++++++++++++++++++++++++++++++++++ views/catalog.html | 109 ++++++++++++++++++++++++++++++++++++++++++++++++ views/index.html | 3 ++ views/layouts/main.html | 1 - 4 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 views/admin.html create mode 100644 views/catalog.html (limited to 'views') diff --git a/views/admin.html b/views/admin.html new file mode 100644 index 0000000..191444b --- /dev/null +++ b/views/admin.html @@ -0,0 +1,78 @@ +
+

Add Board

+
+
+
+
+
+
+
+
+ +
+ +
+ +
+

Subscribed

+
+
+ +
+ +
+ + + +
+

Create News

+
+
+
+
+
+
+
+ +
+

Regex Post Blacklist

+
+
+
+
+
+
+ {{ if .page.PostBlacklist }} + + {{ end }} + + + + + + diff --git a/views/catalog.html b/views/catalog.html new file mode 100644 index 0000000..c70471e --- /dev/null +++ b/views/catalog.html @@ -0,0 +1,109 @@ +{{ define "header" }} +/{{ .page.Board.Name }}/ - catalog + + + + + + + + + + + + +{{ end }} + +{{ $board := .page.Board }} +
+ + + +
+ +
+ {{ range .page.Posts }} +
+ {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + [Delete Post] + {{ end }} + {{ if .Attachment }} + {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} + [Delete Attachment] + [Mark Sensitive] + {{ end }} + + + +
{{ parseAttachment . true }}
+
+ + {{ end }} + +
+ {{ $replies := .Replies }} + {{ if $replies }} + R: {{ $replies.TotalItems }}{{ if $replies.TotalImgs }}/ A: {{ $replies.TotalImgs }}{{ end }} + {{ end }} + {{ if .Name }} +
+ {{ .Name }} + {{ end }} + + {{ if .Content }} +
+ {{.Content}} + {{ end }} +
+
+
+ {{ end }} +
+
+ + + +
diff --git a/views/index.html b/views/index.html index f426d5d..e928ace 100644 --- a/views/index.html +++ b/views/index.html @@ -1,3 +1,6 @@ +{{ define "header" }} +{{ .page.Title }} +{{ end }}

{{ .page.Title }}

{{ .page.PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.

diff --git a/views/layouts/main.html b/views/layouts/main.html index 4cd48f9..41e3412 100644 --- a/views/layouts/main.html +++ b/views/layouts/main.html @@ -45,6 +45,5 @@ {{ template "partials/footer" .page }} - {{ template "scripts" .page }} -- cgit v1.2.3