From 5373d1aa30a0928da07385f3a36cd05e37207d2b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 16:38:24 +0100 Subject: [PATCH] media div --- epicyon-profile.css | 6 ++++++ webinterface.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 3dfd0f84a..7df57a237 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -322,6 +322,12 @@ a:link { margin: 10px 0; } +.media { + border-radius: 5px; + padding: 10px; + margin: 10px 0; +} + .container p.administeredby { font-size: 18px; } diff --git a/webinterface.py b/webinterface.py index 51a095651..92427ef49 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1107,6 +1107,7 @@ def individualPostAsHtml(baseDir: str, \ if postJsonObject['object']['attachment']: if isinstance(postJsonObject['object']['attachment'], list): attachmentCtr=0 + attachmentStr+='
' for attach in postJsonObject['object']['attachment']: if attach.get('mediaType') and attach.get('url'): mediaType=attach['mediaType'] @@ -1126,8 +1127,7 @@ def individualPostAsHtml(baseDir: str, \ '' \ ''+imageDescription+'\n' attachmentCtr+=1 - if attachmentCtr>0: - attachmentStr+='
' + attachmentStr+='
' if not avatarUrl: avatarUrl=getPersonAvatarUrl(baseDir,postJsonObject['actor'],personCache)