forked from indymedia/epicyon
Option to show publish as an icon
parent
b449e66b10
commit
bdc9629727
|
@ -5697,7 +5697,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
|
||||||
iconsDir: str, moderator: bool, editor: bool,
|
iconsDir: str, moderator: bool, editor: bool,
|
||||||
newswire: {}, positiveVoting: bool,
|
newswire: {}, positiveVoting: bool,
|
||||||
showBackButton: bool, timelinePath: str,
|
showBackButton: bool, timelinePath: str,
|
||||||
showPublishButton: bool) -> str:
|
showPublishButton: bool,
|
||||||
|
showPublishAsIcon: bool) -> str:
|
||||||
"""Returns html content for the right column
|
"""Returns html content for the right column
|
||||||
"""
|
"""
|
||||||
htmlStr = ''
|
htmlStr = ''
|
||||||
|
@ -5741,6 +5742,16 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
|
||||||
translate['Go Back'] + '</button></a>\n'
|
translate['Go Back'] + '</button></a>\n'
|
||||||
|
|
||||||
if showPublishButton:
|
if showPublishButton:
|
||||||
|
if showPublishAsIcon:
|
||||||
|
htmlStr += \
|
||||||
|
' <a href="' + \
|
||||||
|
'/users/' + nickname + '/newblog">' + \
|
||||||
|
'<img class="' + editImageClass + \
|
||||||
|
'" loading="lazy" alt="' + \
|
||||||
|
translate['Publish a news article'] + '" title="' + \
|
||||||
|
translate['Publish a news article'] + '" src="/' + \
|
||||||
|
iconsDir + '/publish.png" /></a>\n'
|
||||||
|
else:
|
||||||
htmlStr += \
|
htmlStr += \
|
||||||
' <a href="' + \
|
' <a href="' + \
|
||||||
'/users/' + nickname + '/newblog" ' + \
|
'/users/' + nickname + '/newblog" ' + \
|
||||||
|
@ -5865,7 +5876,8 @@ def htmlNewswireMobile(baseDir: str, nickname: str,
|
||||||
httpPrefix, translate,
|
httpPrefix, translate,
|
||||||
iconsDir, moderator, editor,
|
iconsDir, moderator, editor,
|
||||||
newswire, positiveVoting,
|
newswire, positiveVoting,
|
||||||
True, timelinePath, True)
|
True, timelinePath, True,
|
||||||
|
False)
|
||||||
htmlStr += htmlFooter()
|
htmlStr += htmlFooter()
|
||||||
return htmlStr
|
return htmlStr
|
||||||
|
|
||||||
|
@ -6552,7 +6564,7 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
httpPrefix, translate, iconsDir,
|
httpPrefix, translate, iconsDir,
|
||||||
moderator, editor,
|
moderator, editor,
|
||||||
newswire, positiveVoting,
|
newswire, positiveVoting,
|
||||||
False, None, True)
|
False, None, True, False)
|
||||||
tlStr += ' <td valign="top" class="col-right">' + \
|
tlStr += ' <td valign="top" class="col-right">' + \
|
||||||
rightColumnStr + ' </td>\n'
|
rightColumnStr + ' </td>\n'
|
||||||
tlStr += ' </tr>\n'
|
tlStr += ' </tr>\n'
|
||||||
|
|
Loading…
Reference in New Issue