forked from indymedia/epicyon
If not looged in then replace Publish with Login
parent
9a4f4940a1
commit
8923b5f1fa
36
daemon.py
36
daemon.py
|
@ -6518,7 +6518,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
if GETstartTime:
|
if GETstartTime:
|
||||||
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
'show status done',
|
'show status done',
|
||||||
|
@ -6640,7 +6641,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -6755,7 +6757,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -6870,7 +6873,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -6985,7 +6989,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -7109,7 +7114,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -7192,7 +7198,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.fullWidthTimelineButtonHeader,
|
self.server.fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -7291,7 +7298,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -7409,7 +7417,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -7519,7 +7528,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -7619,7 +7629,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
self.server.iconsAsButtons,
|
self.server.iconsAsButtons,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
self.server.publishButtonAtTop)
|
self.server.publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
@ -9508,7 +9519,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.newswire,
|
self.server.newswire,
|
||||||
self.server.positiveVoting,
|
self.server.positiveVoting,
|
||||||
timelinePath,
|
timelinePath,
|
||||||
showPublishAsIcon).encode('utf-8')
|
showPublishAsIcon,
|
||||||
|
authorized).encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
|
|
|
@ -3422,7 +3422,7 @@ def htmlProfile(cssCache: {}, iconsAsButtons: bool,
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
loginButton += \
|
loginButton += \
|
||||||
' <a href="/login' + \
|
' <a href="/login' + \
|
||||||
'"><button class="button">' + \
|
'"><button class="buttonMobile">' + \
|
||||||
'<span>' + translate['Login'] + \
|
'<span>' + translate['Login'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
else:
|
else:
|
||||||
|
@ -3517,6 +3517,7 @@ def htmlProfile(cssCache: {}, iconsAsButtons: bool,
|
||||||
if isSystemAccount(nickname):
|
if isSystemAccount(nickname):
|
||||||
profileHeaderStr = \
|
profileHeaderStr = \
|
||||||
'<img class="timeline-banner" src="/users/news/banner.png" />\n'
|
'<img class="timeline-banner" src="/users/news/banner.png" />\n'
|
||||||
|
if loginButton:
|
||||||
profileHeaderStr += '<center>' + loginButton + '</center>\n'
|
profileHeaderStr += '<center>' + loginButton + '</center>\n'
|
||||||
|
|
||||||
profileHeaderStr += '<table class="timeline">\n'
|
profileHeaderStr += '<table class="timeline">\n'
|
||||||
|
@ -3668,7 +3669,7 @@ def htmlProfile(cssCache: {}, iconsAsButtons: bool,
|
||||||
iconsDir, False, False,
|
iconsDir, False, False,
|
||||||
newswire, False,
|
newswire, False,
|
||||||
False, None, False, False,
|
False, None, False, False,
|
||||||
False, True)
|
False, True, authorized)
|
||||||
profileFooterStr += ' </td>\n'
|
profileFooterStr += ' </td>\n'
|
||||||
profileFooterStr += ' </tr>\n'
|
profileFooterStr += ' </tr>\n'
|
||||||
profileFooterStr += ' </tbody>\n'
|
profileFooterStr += ' </tbody>\n'
|
||||||
|
@ -5767,7 +5768,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
|
||||||
showPublishButton: bool,
|
showPublishButton: bool,
|
||||||
showPublishAsIcon: bool,
|
showPublishAsIcon: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Returns html content for the right column
|
"""Returns html content for the right column
|
||||||
"""
|
"""
|
||||||
htmlStr = ''
|
htmlStr = ''
|
||||||
|
@ -5776,12 +5778,20 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
|
||||||
if ':' in domain:
|
if ':' in domain:
|
||||||
domain = domain.split(':')
|
domain = domain.split(':')
|
||||||
|
|
||||||
|
if authorized:
|
||||||
|
# only show the publish button if logged in
|
||||||
publishButtonStr = \
|
publishButtonStr = \
|
||||||
' <a href="' + \
|
' <a href="' + \
|
||||||
'/users/' + nickname + '/newblog" ' + \
|
'/users/' + nickname + '/newblog" ' + \
|
||||||
'title="' + translate['Publish a news article'] + '">' + \
|
'title="' + translate['Publish a news article'] + '">' + \
|
||||||
'<button class="publishbtn">' + \
|
'<button class="publishbtn">' + \
|
||||||
translate['Publish'] + '</button></a>\n'
|
translate['Publish'] + '</button></a>\n'
|
||||||
|
else:
|
||||||
|
# if not logged in then replace the publish button with
|
||||||
|
# a login button
|
||||||
|
publishButtonStr = \
|
||||||
|
' <a href="/login"><button class="publishbtn">' + \
|
||||||
|
translate['Login'] + '</button></a>\n'
|
||||||
|
|
||||||
if publishButtonAtTop:
|
if publishButtonAtTop:
|
||||||
htmlStr += '<center>' + publishButtonStr + '</center>'
|
htmlStr += '<center>' + publishButtonStr + '</center>'
|
||||||
|
@ -5926,7 +5936,8 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
|
||||||
newswire: {},
|
newswire: {},
|
||||||
positiveVoting: bool,
|
positiveVoting: bool,
|
||||||
timelinePath: str,
|
timelinePath: str,
|
||||||
showPublishAsIcon: bool) -> str:
|
showPublishAsIcon: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Shows the mobile version of the newswire right column
|
"""Shows the mobile version of the newswire right column
|
||||||
"""
|
"""
|
||||||
htmlStr = ''
|
htmlStr = ''
|
||||||
|
@ -5965,7 +5976,8 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
|
||||||
iconsDir, moderator, editor,
|
iconsDir, moderator, editor,
|
||||||
newswire, positiveVoting,
|
newswire, positiveVoting,
|
||||||
True, timelinePath, showPublishButton,
|
True, timelinePath, showPublishButton,
|
||||||
showPublishAsIcon, True, False)
|
showPublishAsIcon, True, False,
|
||||||
|
authorized)
|
||||||
htmlStr += htmlFooter()
|
htmlStr += htmlFooter()
|
||||||
return htmlStr
|
return htmlStr
|
||||||
|
|
||||||
|
@ -6315,7 +6327,8 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the timeline as html
|
"""Show the timeline as html
|
||||||
"""
|
"""
|
||||||
timelineStartTime = time.time()
|
timelineStartTime = time.time()
|
||||||
|
@ -6849,7 +6862,8 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, positiveVoting,
|
newswire, positiveVoting,
|
||||||
False, None, True,
|
False, None, True,
|
||||||
showPublishAsIcon,
|
showPublishAsIcon,
|
||||||
rssIconAtTop, publishButtonAtTop)
|
rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
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'
|
||||||
|
@ -6897,7 +6911,8 @@ def htmlShares(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the shares timeline as html
|
"""Show the shares timeline as html
|
||||||
"""
|
"""
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
|
@ -6915,7 +6930,8 @@ def htmlShares(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlInbox(cssCache: {}, defaultTimeline: str,
|
def htmlInbox(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -6932,7 +6948,8 @@ def htmlInbox(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the inbox as html
|
"""Show the inbox as html
|
||||||
"""
|
"""
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
|
@ -6950,7 +6967,8 @@ def htmlInbox(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -6967,7 +6985,8 @@ def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the bookmarks as html
|
"""Show the bookmarks as html
|
||||||
"""
|
"""
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
|
@ -6985,7 +7004,8 @@ def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlEvents(cssCache: {}, defaultTimeline: str,
|
def htmlEvents(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7002,7 +7022,8 @@ def htmlEvents(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the events as html
|
"""Show the events as html
|
||||||
"""
|
"""
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
|
@ -7020,7 +7041,8 @@ def htmlEvents(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7037,7 +7059,8 @@ def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the DM timeline as html
|
"""Show the DM timeline as html
|
||||||
"""
|
"""
|
||||||
return htmlTimeline(cssCache, defaultTimeline,
|
return htmlTimeline(cssCache, defaultTimeline,
|
||||||
|
@ -7050,7 +7073,8 @@ def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False, positiveVoting,
|
newswire, False, False, positiveVoting,
|
||||||
showPublishAsIcon,
|
showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7067,7 +7091,8 @@ def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the replies timeline as html
|
"""Show the replies timeline as html
|
||||||
"""
|
"""
|
||||||
return htmlTimeline(cssCache, defaultTimeline,
|
return htmlTimeline(cssCache, defaultTimeline,
|
||||||
|
@ -7081,7 +7106,8 @@ def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7098,7 +7124,8 @@ def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the media timeline as html
|
"""Show the media timeline as html
|
||||||
"""
|
"""
|
||||||
return htmlTimeline(cssCache, defaultTimeline,
|
return htmlTimeline(cssCache, defaultTimeline,
|
||||||
|
@ -7112,7 +7139,8 @@ def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7129,7 +7157,8 @@ def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the blogs timeline as html
|
"""Show the blogs timeline as html
|
||||||
"""
|
"""
|
||||||
return htmlTimeline(cssCache, defaultTimeline,
|
return htmlTimeline(cssCache, defaultTimeline,
|
||||||
|
@ -7143,7 +7172,8 @@ def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, False, False,
|
newswire, False, False,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7160,7 +7190,8 @@ def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the news timeline as html
|
"""Show the news timeline as html
|
||||||
"""
|
"""
|
||||||
return htmlTimeline(cssCache, defaultTimeline,
|
return htmlTimeline(cssCache, defaultTimeline,
|
||||||
|
@ -7174,7 +7205,8 @@ def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
||||||
newswire, moderator, editor,
|
newswire, moderator, editor,
|
||||||
positiveVoting, showPublishAsIcon,
|
positiveVoting, showPublishAsIcon,
|
||||||
fullWidthTimelineButtonHeader,
|
fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlModeration(cssCache: {}, defaultTimeline: str,
|
def htmlModeration(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7191,7 +7223,8 @@ def htmlModeration(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the moderation feed as html
|
"""Show the moderation feed as html
|
||||||
"""
|
"""
|
||||||
return htmlTimeline(cssCache, defaultTimeline,
|
return htmlTimeline(cssCache, defaultTimeline,
|
||||||
|
@ -7203,7 +7236,8 @@ def htmlModeration(cssCache: {}, defaultTimeline: str,
|
||||||
YTReplacementDomain, showPublishedDateOnly,
|
YTReplacementDomain, showPublishedDateOnly,
|
||||||
newswire, False, False, positiveVoting,
|
newswire, False, False, positiveVoting,
|
||||||
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
||||||
|
@ -7220,7 +7254,8 @@ def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
||||||
fullWidthTimelineButtonHeader: bool,
|
fullWidthTimelineButtonHeader: bool,
|
||||||
iconsAsButtons: bool,
|
iconsAsButtons: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
publishButtonAtTop: bool) -> str:
|
publishButtonAtTop: bool,
|
||||||
|
authorized: bool) -> str:
|
||||||
"""Show the Outbox as html
|
"""Show the Outbox as html
|
||||||
"""
|
"""
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
|
@ -7235,7 +7270,8 @@ def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
||||||
YTReplacementDomain, showPublishedDateOnly,
|
YTReplacementDomain, showPublishedDateOnly,
|
||||||
newswire, False, False, positiveVoting,
|
newswire, False, False, positiveVoting,
|
||||||
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
||||||
iconsAsButtons, rssIconAtTop, publishButtonAtTop)
|
iconsAsButtons, rssIconAtTop, publishButtonAtTop,
|
||||||
|
authorized)
|
||||||
|
|
||||||
|
|
||||||
def htmlIndividualPost(cssCache: {},
|
def htmlIndividualPost(cssCache: {},
|
||||||
|
|
Loading…
Reference in New Issue