From fbd5e54c952663d0f0fab352d37d3baeefdb2e53 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Thu, 13 May 2021 23:47:42 -0700 Subject: improved tripcodes --- static/main.html | 3 +++ static/posts.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/main.html b/static/main.html index 5c39a40..1cd2aff 100644 --- a/static/main.html +++ b/static/main.html @@ -65,6 +65,9 @@ background-color: #f0c0b0; {{ end }} } + .tripcode { + color: #117743; + } {{ template "header" . }} diff --git a/static/posts.html b/static/posts.html index a32d7c5..7806204 100644 --- a/static/posts.html +++ b/static/posts.html @@ -60,7 +60,7 @@ } {{ end }} - {{ .Name }}{{ if .AttributedTo }} {{.AttributedTo }} {{ else }} Anonymous {{ end }}{{ .Published }} No. {{ .Id }} {{ if ne .Type "Tombstone" }}[Report]{{ end }} + {{ .Name }}{{ if .AttributedTo }} {{.AttributedTo }} {{ else }} Anonymous {{ end }} {{ .TripCode }} {{ .Published }} No. {{ .Id }} {{ if ne .Type "Tombstone" }}[Report]{{ end }}
{{.Content}}
{{ if .Replies }} {{ $replies := .Replies }} @@ -126,7 +126,7 @@ } {{ end }} - {{ .Name }}{{ if .AttributedTo }} {{.AttributedTo }} {{ else }} Anonymous {{ end }}{{ .Published }} No. {{ .Id }} {{ if ne .Type "Tombstone" }}[Report]{{ end }} + {{ .Name }}{{ if .AttributedTo }} {{.AttributedTo }} {{ else }} Anonymous {{ end }} {{ .TripCode }} {{ .Published }} No. {{ .Id }} {{ if ne .Type "Tombstone" }}[Report]{{ end }} {{ $parentId := .Id }} {{ if .Replies.OrderedItems }} {{ range .Replies.OrderedItems }} -- cgit v1.2.3