Don't show image within mobile newswire

main
Bob Mottram 2020-10-30 18:58:20 +00:00
parent ced8237af7
commit e991224c06
1 changed files with 31 additions and 27 deletions

View File

@ -3702,7 +3702,7 @@ def htmlProfile(cssCache: {}, iconsAsButtons: bool,
iconsDir, False, False,
newswire, False,
False, None, False, False,
False, True, authorized)
False, True, authorized, True)
profileFooterStr += ' </td>\n'
profileFooterStr += ' </tr>\n'
profileFooterStr += ' </tbody>\n'
@ -5806,7 +5806,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
showPublishAsIcon: bool,
rssIconAtTop: bool,
publishButtonAtTop: bool,
authorized: bool) -> str:
authorized: bool,
showHeaderImage: bool) -> str:
"""Returns html content for the right column
"""
htmlStr = ''
@ -5833,6 +5834,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
if publishButtonAtTop:
htmlStr += '<center>' + publishButtonStr + '</center>'
editImageClass = ''
if showHeaderImage:
rightColumnImageFilename = \
baseDir + '/accounts/' + nickname + '@' + domain + \
'/right_col_image.png'
@ -5845,7 +5848,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
themeRightColumnImageFilename = \
baseDir + '/img/right_col_image' + theme + '.png'
if os.path.isfile(themeRightColumnImageFilename):
copyfile(themeRightColumnImageFilename, rightColumnImageFilename)
copyfile(themeRightColumnImageFilename,
rightColumnImageFilename)
# show the image at the top of the column
editImageClass = 'rightColEdit'
@ -6026,7 +6030,7 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
newswire, positiveVoting,
True, timelinePath, showPublishButton,
showPublishAsIcon, True, False,
authorized)
authorized, False)
htmlStr += htmlFooter()
return htmlStr
@ -6913,7 +6917,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
False, None, True,
showPublishAsIcon,
rssIconAtTop, publishButtonAtTop,
authorized)
authorized, True)
tlStr += ' <td valign="top" class="col-right">' + \
rightColumnStr + ' </td>\n'
tlStr += ' </tr>\n'