From 1df70fec27ab5e4aa3dff8521767454be6b5498c Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 4 Feb 2021 12:33:42 -0800 Subject: when merging boards into a feed show the board color based on posts restrictions --- static/catalog.html | 189 ++++++++++++++++++++++++++++++++++++++++++++++++++++ static/faq.html | 2 +- static/main.html | 8 +-- static/manage.html | 10 +-- static/rules.html | 6 +- 5 files changed, 200 insertions(+), 15 deletions(-) create mode 100644 static/catalog.html (limited to 'static') diff --git a/static/catalog.html b/static/catalog.html new file mode 100644 index 0000000..b5b361e --- /dev/null +++ b/static/catalog.html @@ -0,0 +1,189 @@ + + + + {{ .Title }} + + + + + + {{ $board := .Board }} + {{ if $board.IsMod }} + [Manage Board] + {{ end }} +
+

/{{ $board.Name }}/ - {{ $board.PrefName }}

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

+
+
+
+ +
+
+
+ +
+ +
+ +
+ {{ range .Posts }} +
+ {{ if $board.IsMod }} + [Delete Post] + {{ end }} + {{ if .Attachment }} + {{ if $board.IsMod }} + [Delete Attachment] + {{ end }} + +
+ + + + {{ end }} +
+ {{ $replies := .Replies }} + R: {{ $replies.TotalItems }}{{ if $replies.TotalImgs }}/ A: {{ $replies.TotalImgs }}{{ end }} + {{ if .Name }} + {{ .Name }} + {{ end }} + {{ if .Content }} + {{.Content}} + {{ end }} +
+
+
+ + {{ end }} +
+
+ +
+ + + diff --git a/static/faq.html b/static/faq.html index 2b81e43..66c053d 100644 --- a/static/faq.html +++ b/static/faq.html @@ -5,7 +5,7 @@

FAQ

What is fchan

-

fchan short for fchannel and is a federated image board based on activity pub. it removes the centralization aspect that so many of us have become accustom to. it is not trying to re-invent the wheel and draws likeness from other chans for ease of familiarity. you can get the source code here https://github.com/FChannel0 any help is appreciated.

+

fchan short for fchannel and is a federated image board based on activity pub. it removes the need for centeralized boards. many boards can be connected and feeds shared or followed. it draws likeness from other chans for ease of familiarity. you can get the source code here https://github.com/FChannel0 and modify how you choose, any help is appreciated.

Options

the options field when posting can be used for special options when posting. type noko in the options field to return to the thread you posting to. use sage to ignore updating the thread bump order. nokosage will do both.

diff --git a/static/main.html b/static/main.html index 7d5d236..dd9d0c0 100644 --- a/static/main.html +++ b/static/main.html @@ -19,7 +19,7 @@ } body { - {{ if .Board.Restricted }} + {{ if .Board.Post.Actor.Restricted }} background-color: #eef2fe; color: black; {{ else }} @@ -29,7 +29,7 @@ } .popup-box { - {{ if .Board.Restricted }} + {{ if .Board.Post.Actor.Restricted }} border: 4px solid #d3caf0; background-color: #eff5ff; {{ else }} @@ -43,7 +43,7 @@ } .reply { - {{ if .Board.Restricted }} + {{ if .Board.Post.Actor.Restricted }} color:#af0a0f; {{ else }} color:#000080; @@ -51,7 +51,7 @@ } .post { - {{ if .Board.Restricted }} + {{ if .Board.Post.Actor.Restricted }} background-color: #d5daf0; {{ else }} background-color: #f0e0d6; diff --git a/static/manage.html b/static/manage.html index 06288cd..570c0f5 100644 --- a/static/manage.html +++ b/static/manage.html @@ -16,7 +16,7 @@
[Return] -{{ $actor := .Actor.Id }} +{{ $actor := .Board.Actor.Id }} {{ $board := .Board }} {{ $key := .Key }} {{ if .IsLocal }} @@ -24,9 +24,9 @@

Subscribed


- +
- +