mirror of https://gitlab.com/bashrc2/epicyon
Right column on shares timeline
parent
74a0959876
commit
2eec26aeaa
|
@ -706,12 +706,13 @@ def outboxShareUpload(baseDir: str, httpPrefix: str,
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: duration missing from Offer')
|
print('DEBUG: duration missing from Offer')
|
||||||
return
|
return
|
||||||
|
itemQty = float(messageJson['object']['itemQty'])
|
||||||
addShare(baseDir,
|
addShare(baseDir,
|
||||||
httpPrefix, nickname, domain, port,
|
httpPrefix, nickname, domain, port,
|
||||||
messageJson['object']['displayName'],
|
messageJson['object']['displayName'],
|
||||||
messageJson['object']['summary'],
|
messageJson['object']['summary'],
|
||||||
messageJson['object']['imageFilename'],
|
messageJson['object']['imageFilename'],
|
||||||
float(messageJson['object']['itemQty']),
|
itemQty,
|
||||||
messageJson['object']['itemType'],
|
messageJson['object']['itemType'],
|
||||||
messageJson['object']['itemCategory'],
|
messageJson['object']['itemCategory'],
|
||||||
messageJson['object']['location'],
|
messageJson['object']['location'],
|
||||||
|
|
|
@ -333,6 +333,46 @@ def _htmlTimelineKeyboard(moderator: bool, textModeBanner: str, usersPath: str,
|
||||||
None, usersPath, translate, followApprovals)
|
None, usersPath, translate, followApprovals)
|
||||||
|
|
||||||
|
|
||||||
|
def _htmlTimelineEnd(baseDir: str, nickname: str, domainFull: str,
|
||||||
|
httpPrefix: str, translate: {},
|
||||||
|
moderator: bool, editor: bool,
|
||||||
|
newswire: {}, positiveVoting: bool,
|
||||||
|
showPublishAsIcon: bool,
|
||||||
|
rssIconAtTop: bool, publishButtonAtTop: bool,
|
||||||
|
authorized: bool, theme: str,
|
||||||
|
defaultTimeline: str, accessKeys: {},
|
||||||
|
boxName: str,
|
||||||
|
enableTimingLog: bool, timelineStartTime) -> str:
|
||||||
|
"""Ending of the timeline, containing the right column
|
||||||
|
"""
|
||||||
|
# end of timeline-posts
|
||||||
|
tlStr = ' </div>\n'
|
||||||
|
|
||||||
|
# end of column-center
|
||||||
|
tlStr += ' </td>\n'
|
||||||
|
|
||||||
|
# right column
|
||||||
|
rightColumnStr = getRightColumnContent(baseDir, nickname, domainFull,
|
||||||
|
httpPrefix, translate,
|
||||||
|
moderator, editor,
|
||||||
|
newswire, positiveVoting,
|
||||||
|
False, None, True,
|
||||||
|
showPublishAsIcon,
|
||||||
|
rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized, True, theme,
|
||||||
|
defaultTimeline, accessKeys)
|
||||||
|
tlStr += ' <td valign="top" class="col-right" ' + \
|
||||||
|
'id="newswire" tabindex="-1">' + \
|
||||||
|
rightColumnStr + ' </td>\n'
|
||||||
|
tlStr += ' </tr>\n'
|
||||||
|
|
||||||
|
_logTimelineTiming(enableTimingLog, timelineStartTime, boxName, '9')
|
||||||
|
|
||||||
|
tlStr += ' </tbody>\n'
|
||||||
|
tlStr += '</table>\n'
|
||||||
|
return tlStr
|
||||||
|
|
||||||
|
|
||||||
def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
recentPostsCache: {}, maxRecentPosts: int,
|
recentPostsCache: {}, maxRecentPosts: int,
|
||||||
translate: {}, pageNumber: int,
|
translate: {}, pageNumber: int,
|
||||||
|
@ -659,8 +699,16 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
baseDir, actor, nickname, domain, port,
|
baseDir, actor, nickname, domain, port,
|
||||||
maxSharesPerAccount, httpPrefix,
|
maxSharesPerAccount, httpPrefix,
|
||||||
sharedItemsFederatedDomains) +
|
sharedItemsFederatedDomains) +
|
||||||
' </div>\n' + ' </td>\n' +
|
_htmlTimelineEnd(baseDir, nickname, domainFull,
|
||||||
' </tr>\n' + ' </tbody>\n' + ' </table>\n' +
|
httpPrefix, translate,
|
||||||
|
moderator, editor,
|
||||||
|
newswire, positiveVoting,
|
||||||
|
showPublishAsIcon,
|
||||||
|
rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized, theme,
|
||||||
|
defaultTimeline, accessKeys,
|
||||||
|
boxName,
|
||||||
|
enableTimingLog, timelineStartTime) +
|
||||||
htmlFooter())
|
htmlFooter())
|
||||||
|
|
||||||
_logTimelineTiming(enableTimingLog, timelineStartTime, boxName, '7')
|
_logTimelineTiming(enableTimingLog, timelineStartTime, boxName, '7')
|
||||||
|
@ -786,31 +834,17 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
elif itemCtr == 0:
|
elif itemCtr == 0:
|
||||||
tlStr += _getHelpForTimeline(baseDir, boxName)
|
tlStr += _getHelpForTimeline(baseDir, boxName)
|
||||||
|
|
||||||
# end of timeline-posts
|
tlStr += \
|
||||||
tlStr += ' </div>\n'
|
_htmlTimelineEnd(baseDir, nickname, domainFull,
|
||||||
|
httpPrefix, translate,
|
||||||
# end of column-center
|
moderator, editor,
|
||||||
tlStr += ' </td>\n'
|
newswire, positiveVoting,
|
||||||
|
showPublishAsIcon,
|
||||||
# right column
|
rssIconAtTop, publishButtonAtTop,
|
||||||
rightColumnStr = getRightColumnContent(baseDir, nickname, domainFull,
|
authorized, theme,
|
||||||
httpPrefix, translate,
|
defaultTimeline, accessKeys,
|
||||||
moderator, editor,
|
boxName,
|
||||||
newswire, positiveVoting,
|
enableTimingLog, timelineStartTime)
|
||||||
False, None, True,
|
|
||||||
showPublishAsIcon,
|
|
||||||
rssIconAtTop, publishButtonAtTop,
|
|
||||||
authorized, True, theme,
|
|
||||||
defaultTimeline, accessKeys)
|
|
||||||
tlStr += ' <td valign="top" class="col-right" ' + \
|
|
||||||
'id="newswire" tabindex="-1">' + \
|
|
||||||
rightColumnStr + ' </td>\n'
|
|
||||||
tlStr += ' </tr>\n'
|
|
||||||
|
|
||||||
_logTimelineTiming(enableTimingLog, timelineStartTime, boxName, '9')
|
|
||||||
|
|
||||||
tlStr += ' </tbody>\n'
|
|
||||||
tlStr += '</table>\n'
|
|
||||||
tlStr += htmlFooter()
|
tlStr += htmlFooter()
|
||||||
return tlStr
|
return tlStr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue