From a5bfe1b826b2d1913f035bb9a4816bab89d30646 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Nov 2020 13:49:10 +0000 Subject: [PATCH] New post banner --- webinterface.py | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index b4435852..ae27d4f7 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2386,6 +2386,9 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, showPublicOnDropdown = True messageBoxHeight = 400 + # filename of the banner shown at the top + bannerFile, bannerFilename = getBannerFile(baseDir, nickname, domain) + if not path.endswith('/newshare'): if not path.endswith('/newreport'): if not inReplyTo or path.endswith('/newreminder'): @@ -2738,6 +2741,13 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, newPostForm = htmlHeader(cssFilename, newPostCSS) + newPostForm += \ + '\n' + newPostForm += '\n' + # only show the share option if this is not a reply shareOptionOnDropdown = '' questionOptionOnDropdown = '' @@ -2901,24 +2911,32 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, newPostForm += '
\n' newPostForm += ' \n' newPostForm += '\n' + newPostForm += \ ' \n' + + newPostForm += \ + ' \n' + newPostForm += ' \n' newPostForm += '
' + dropDownContent + '' + \
         translate['Search for emoji'] + '
\n' newPostForm += '
\n' + newPostForm += '
\n' - newPostForm += \ - ' \n' + # newPostForm += \ + # ' \n' newPostForm += \ ' \n' newPostForm += '
\n' + newPostForm += replyStr if mediaInstance and not replyStr: newPostForm += newPostImageSection