From f0ce5bc6d4146bc1191b8f8428c387a9085217e5 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Fri, 30 Jul 2021 17:47:45 -0700 Subject: removed shortImg and convertSize javascript to serverside --- static/posts.html | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'static/posts.html') diff --git a/static/posts.html b/static/posts.html index 928a51d..8ee3844 100644 --- a/static/posts.html +++ b/static/posts.html @@ -18,7 +18,7 @@ [Delete Attachment] [Mark Sensitive] {{ end }} - File: {{ (index .Attachment 0).Name }}({{ (index .Attachment 0).Size }}) + File: {{ shortImg (index .Attachment 0).Name }} ({{ convertSize (index .Attachment 0).Size }})
{{ parseAttachment . false }}
@@ -68,7 +68,7 @@ [Delete Attachment] [Mark Sensitive] {{ end }} - File {{ (index .Attachment 0).Name }} ({{ (index .Attachment 0).Size }}) + File {{ shortImg (index .Attachment 0).Name }} ({{ convertSize (index .Attachment 0).Size }})
@@ -108,21 +108,9 @@ - {{ end }} {{ end }} - {{ end }} {{ end }} -- cgit v1.2.3