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/partials/posts.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'views/partials') 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 }} -
{{ 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