From cc3e8e57154409469267b0526807a907d5166147 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 12 Jun 2022 23:04:13 -0700 Subject: admin page layout/css - truncate long new line posts --- views/admin.html | 7 ++----- views/manage.html | 11 ----------- views/partials/posts.html | 5 +++-- 3 files changed, 5 insertions(+), 18 deletions(-) (limited to 'views') diff --git a/views/admin.html b/views/admin.html index e490704..2b733b5 100644 --- a/views/admin.html +++ b/views/admin.html @@ -72,8 +72,5 @@ {{ end }} - - - - - +{{ template "partials/footer" .page }} +{{ template "partials/general_scripts" .page }} diff --git a/views/manage.html b/views/manage.html index e3c03a0..e51644e 100644 --- a/views/manage.html +++ b/views/manage.html @@ -80,14 +80,3 @@ {{ template "partials/footer" .page }} {{ template "partials/general_scripts" .page }} - - diff --git a/views/partials/posts.html b/views/partials/posts.html index 67f3d27..8ae1745 100644 --- a/views/partials/posts.html +++ b/views/partials/posts.html @@ -1,5 +1,6 @@ {{ $board := .Board }} {{ $len := len .Posts }} +{{ $page := . }} {{ range .Posts }} {{ $thread := . }} {{ $opId := .Id }} @@ -48,7 +49,7 @@ {{ if .AttributedTo }} {{.AttributedTo }} {{ else }} Anonymous {{ end }} {{ .TripCode }} {{ .Published | timeToReadableLong }} No. {{ shortURL $board.Actor.Outbox .Id }} {{ if ne .Type "Tombstone" }}[Report]{{ end }} -

{{ parseContent $board.Actor $opId .Content $thread }}

+

{{ parseContent $board.Actor $opId .Content $thread .Id $page.PostType }}

{{ if .Replies }} {{ $replies := .Replies }} {{ if gt $replies.TotalItems 5 }} @@ -109,7 +110,7 @@ {{ parseReplyLink $board.Actor.Id $opId .Id .Content }} {{ end }} {{ end }} -

{{ parseContent $board.Actor $opId .Content $thread }}

+

{{ parseContent $board.Actor $opId .Content $thread .Id $page.PostType }}

-- cgit v1.2.3