From 90bcb54980998c757059957d218e2cf1899e462d Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Thu, 19 Aug 2021 13:15:34 -0300 Subject: fix post form on default nsfw --- static/css/themes/default.css | 6 +++++- static/index.html | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 12 deletions(-) (limited to 'static') diff --git a/static/css/themes/default.css b/static/css/themes/default.css index 7f3d1a8..24e85e6 100644 --- a/static/css/themes/default.css +++ b/static/css/themes/default.css @@ -98,12 +98,16 @@ a.reply { } #postForm tr > td:first-child { - background-color: #98e; + background-color: #98e; border: 1px black; padding-left: 0.5em; padding-right: 0.5em; } +.nsfw #postForm tr > td:first-child { + background-color: #ea8; +} + #postForm input[type="text"], #postForm textarea, #reply-name, #reply-options, #reply-comment { diff --git a/static/index.html b/static/index.html index 96edb23..8f1d53b 100644 --- a/static/index.html +++ b/static/index.html @@ -1,6 +1,6 @@ {{ define "header" }} {{ .Title }} - + @@ -23,44 +23,44 @@

{{ .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.

{{ if .Boards }} - {{ $l := len .Boards }} + {{ $l := len .Boards }}
-
+
{{ if lt $l 2 }}
Local boards
{{ else if eq $l 2 }}
Local boards
{{ else }}
Local boards
- {{ end }} + {{ end }} {{ range .Boards }}
/{{.Name}}/ - {{.PrefName}} {{ if not .Restricted }} [NSFW] {{ end }}
{{ end }} - {{ if gt $l 2 }} + {{ if gt $l 2 }} {{ range .BoardRemainer }}
{{ end }} {{ end }} -
+
{{ end }} - - {{ if .NewsItems }} + + {{ if .NewsItems }}

{{ .PreferredUsername }} News

{{ range $i, $e := .NewsItems }}

{{unixtoreadable $e.Time}} - {{$e.Title}}{{ if $.Board.ModCred }} [Delete] {{end}}


- +

{{$e.Content}}

{{ end }}
- {{ end }} - + {{ end }} +

Current known instances

(always use a proxy) -- cgit v1.2.3