forked from indymedia/epicyon
New post banner
parent
702bfb0e74
commit
a5bfe1b826
|
@ -2386,6 +2386,9 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
showPublicOnDropdown = True
|
showPublicOnDropdown = True
|
||||||
messageBoxHeight = 400
|
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('/newshare'):
|
||||||
if not path.endswith('/newreport'):
|
if not path.endswith('/newreport'):
|
||||||
if not inReplyTo or path.endswith('/newreminder'):
|
if not inReplyTo or path.endswith('/newreminder'):
|
||||||
|
@ -2738,6 +2741,13 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
|
|
||||||
newPostForm = htmlHeader(cssFilename, newPostCSS)
|
newPostForm = htmlHeader(cssFilename, newPostCSS)
|
||||||
|
|
||||||
|
newPostForm += \
|
||||||
|
'<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \
|
||||||
|
translate['Switch to timeline view'] + '" alt="' + \
|
||||||
|
translate['Switch to timeline view'] + '">\n'
|
||||||
|
newPostForm += '<img loading="lazy" class="timeline-banner" src="' + \
|
||||||
|
usersPath + '/' + bannerFile + '" /></a>\n'
|
||||||
|
|
||||||
# only show the share option if this is not a reply
|
# only show the share option if this is not a reply
|
||||||
shareOptionOnDropdown = ''
|
shareOptionOnDropdown = ''
|
||||||
questionOptionOnDropdown = ''
|
questionOptionOnDropdown = ''
|
||||||
|
@ -2901,24 +2911,32 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
newPostForm += ' <div class="containerNewPost">\n'
|
newPostForm += ' <div class="containerNewPost">\n'
|
||||||
newPostForm += ' <table style="width:100%" border="0"><tr>\n'
|
newPostForm += ' <table style="width:100%" border="0"><tr>\n'
|
||||||
newPostForm += '<td>' + dropDownContent + '</td>\n'
|
newPostForm += '<td>' + dropDownContent + '</td>\n'
|
||||||
|
|
||||||
newPostForm += \
|
newPostForm += \
|
||||||
' <td><a href="' + pathBase + \
|
' <td><a href="' + pathBase + \
|
||||||
'/searchemoji"><img loading="lazy" class="emojisearch" ' + \
|
'/searchemoji"><img loading="lazy" class="emojisearch" ' + \
|
||||||
'src="/emoji/1F601.png" title="' + \
|
'src="/emoji/1F601.png" title="' + \
|
||||||
translate['Search for emoji'] + '" alt="' + \
|
translate['Search for emoji'] + '" alt="' + \
|
||||||
translate['Search for emoji'] + '"/></a></td>\n'
|
translate['Search for emoji'] + '"/></a></td>\n'
|
||||||
|
|
||||||
|
newPostForm += \
|
||||||
|
' <td><input type="submit" name="submitPost" value="' + \
|
||||||
|
translate['Submit'] + '"></td>\n'
|
||||||
|
|
||||||
newPostForm += ' </tr>\n'
|
newPostForm += ' </tr>\n'
|
||||||
newPostForm += '</table>\n'
|
newPostForm += '</table>\n'
|
||||||
newPostForm += ' </div>\n'
|
newPostForm += ' </div>\n'
|
||||||
|
|
||||||
newPostForm += ' <div class="container"><center>\n'
|
newPostForm += ' <div class="container"><center>\n'
|
||||||
newPostForm += \
|
# newPostForm += \
|
||||||
' <a href="' + pathBase + \
|
# ' <a href="' + pathBase + \
|
||||||
'/inbox"><button class="cancelbtn">' + \
|
# '/inbox"><button class="cancelbtn">' + \
|
||||||
translate['Go Back'] + '</button></a>\n'
|
# translate['Go Back'] + '</button></a>\n'
|
||||||
newPostForm += \
|
newPostForm += \
|
||||||
' <input type="submit" name="submitPost" value="' + \
|
' <input type="submit" name="submitPost" value="' + \
|
||||||
translate['Submit'] + '">\n'
|
translate['Submit'] + '">\n'
|
||||||
newPostForm += ' </center></div>\n'
|
newPostForm += ' </center></div>\n'
|
||||||
|
|
||||||
newPostForm += replyStr
|
newPostForm += replyStr
|
||||||
if mediaInstance and not replyStr:
|
if mediaInstance and not replyStr:
|
||||||
newPostForm += newPostImageSection
|
newPostForm += newPostImageSection
|
||||||
|
|
Loading…
Reference in New Issue