mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
5b082ab200
commit
b287c3502a
58
daemon.py
58
daemon.py
|
@ -2222,9 +2222,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
# set boolean values
|
||||
if 'rss-icon-at-top' in themeDesignerParams:
|
||||
if themeDesignerParams['rss-icon-at-top'].lower() == 'true':
|
||||
self.server.rssIconAtTop = True
|
||||
self.server.rss_icon_at_top = True
|
||||
else:
|
||||
self.server.rssIconAtTop = False
|
||||
self.server.rss_icon_at_top = False
|
||||
if 'publish-button-at-top' in themeDesignerParams:
|
||||
if themeDesignerParams['publish-button-at-top'].lower() == 'true':
|
||||
self.server.publish_button_at_top = True
|
||||
|
@ -5024,9 +5024,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.iconsAsButtons = \
|
||||
getConfigParam(self.server.base_dir,
|
||||
'iconsAsButtons')
|
||||
self.server.rssIconAtTop = \
|
||||
self.server.rss_icon_at_top = \
|
||||
getConfigParam(self.server.base_dir,
|
||||
'rssIconAtTop')
|
||||
'rss_icon_at_top')
|
||||
self.server.publish_button_at_top = \
|
||||
getConfigParam(self.server.base_dir,
|
||||
'publish_button_at_top')
|
||||
|
@ -5965,9 +5965,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.iconsAsButtons = \
|
||||
getConfigParam(base_dir,
|
||||
'iconsAsButtons')
|
||||
self.server.rssIconAtTop = \
|
||||
self.server.rss_icon_at_top = \
|
||||
getConfigParam(base_dir,
|
||||
'rssIconAtTop')
|
||||
'rss_icon_at_top')
|
||||
self.server.publish_button_at_top = \
|
||||
getConfigParam(base_dir,
|
||||
'publish_button_at_top')
|
||||
|
@ -9688,7 +9688,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
base_dir, nickname, domain)
|
||||
msg = \
|
||||
htmlProfile(self.server.signingPrivateKeyPem,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.cssCache,
|
||||
iconsAsButtons,
|
||||
defaultTimeline,
|
||||
|
@ -9804,7 +9804,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.content_license_url
|
||||
msg = \
|
||||
htmlProfile(signingPrivateKeyPem,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.cssCache,
|
||||
iconsAsButtons,
|
||||
defaultTimeline,
|
||||
|
@ -10250,7 +10250,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -10401,7 +10401,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
|
@ -10544,7 +10544,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
|
@ -10685,7 +10685,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -10827,7 +10827,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -10979,7 +10979,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -11128,7 +11128,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -11235,7 +11235,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
self.server.fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
|
@ -11319,7 +11319,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
self.server.fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized, self.server.themeName,
|
||||
self.server.peertubeInstances,
|
||||
|
@ -11441,7 +11441,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -11579,7 +11579,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized,
|
||||
self.server.themeName,
|
||||
|
@ -11711,7 +11711,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.publish_button_at_top,
|
||||
authorized, moderationActionStr,
|
||||
self.server.themeName,
|
||||
|
@ -11815,7 +11815,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
base_dir, nickname, domain)
|
||||
msg = \
|
||||
htmlProfile(self.server.signingPrivateKeyPem,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.cssCache,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -11936,7 +11936,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.content_license_url
|
||||
msg = \
|
||||
htmlProfile(self.server.signingPrivateKeyPem,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.cssCache,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -12055,7 +12055,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.content_license_url
|
||||
msg = \
|
||||
htmlProfile(self.server.signingPrivateKeyPem,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.cssCache,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -12191,7 +12191,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
base_dir, nickname, domain)
|
||||
msg = \
|
||||
htmlProfile(self.server.signingPrivateKeyPem,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
self.server.cssCache,
|
||||
self.server.iconsAsButtons,
|
||||
self.server.defaultTimeline,
|
||||
|
@ -14958,7 +14958,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
timelinePath = \
|
||||
'/users/' + nickname + '/' + self.server.defaultTimeline
|
||||
showPublishAsIcon = self.server.showPublishAsIcon
|
||||
rssIconAtTop = self.server.rssIconAtTop
|
||||
rss_icon_at_top = self.server.rss_icon_at_top
|
||||
iconsAsButtons = self.server.iconsAsButtons
|
||||
defaultTimeline = self.server.defaultTimeline
|
||||
accessKeys = self.server.accessKeys
|
||||
|
@ -14976,7 +14976,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
timelinePath,
|
||||
showPublishAsIcon,
|
||||
authorized,
|
||||
rssIconAtTop,
|
||||
rss_icon_at_top,
|
||||
iconsAsButtons,
|
||||
defaultTimeline,
|
||||
self.server.themeName,
|
||||
|
@ -15015,7 +15015,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.translate,
|
||||
timelinePath,
|
||||
authorized,
|
||||
self.server.rssIconAtTop,
|
||||
self.server.rss_icon_at_top,
|
||||
iconsAsButtons,
|
||||
defaultTimeline,
|
||||
self.server.themeName,
|
||||
|
@ -18430,7 +18430,7 @@ def runDaemon(content_license_url: str,
|
|||
allow_local_network_access: bool,
|
||||
max_feed_item_size_kb: int,
|
||||
publish_button_at_top: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
iconsAsButtons: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
showPublishAsIcon: bool,
|
||||
|
@ -18668,7 +18668,7 @@ def runDaemon(content_license_url: str,
|
|||
httpd.iconsAsButtons = iconsAsButtons
|
||||
|
||||
# whether to show the RSS icon at the top or the bottom of the timeline
|
||||
httpd.rssIconAtTop = rssIconAtTop
|
||||
httpd.rss_icon_at_top = rss_icon_at_top
|
||||
|
||||
# Whether to show the newswire publish button at the top,
|
||||
# above the header image
|
||||
|
|
14
epicyon.py
14
epicyon.py
|
@ -347,8 +347,8 @@ parser.add_argument("--log_login_failures",
|
|||
type=str2bool, nargs='?',
|
||||
const=True, default=False,
|
||||
help="Whether to log longin failures")
|
||||
parser.add_argument("--rssIconAtTop",
|
||||
dest='rssIconAtTop',
|
||||
parser.add_argument("--rss_icon_at_top",
|
||||
dest='rss_icon_at_top',
|
||||
type=str2bool, nargs='?',
|
||||
const=True, default=True,
|
||||
help="Whether to show the rss icon at teh top or bottom" +
|
||||
|
@ -3088,10 +3088,10 @@ iconsAsButtons = \
|
|||
if iconsAsButtons is not None:
|
||||
args.iconsAsButtons = bool(iconsAsButtons)
|
||||
|
||||
rssIconAtTop = \
|
||||
getConfigParam(base_dir, 'rssIconAtTop')
|
||||
if rssIconAtTop is not None:
|
||||
args.rssIconAtTop = bool(rssIconAtTop)
|
||||
rss_icon_at_top = \
|
||||
getConfigParam(base_dir, 'rss_icon_at_top')
|
||||
if rss_icon_at_top is not None:
|
||||
args.rss_icon_at_top = bool(rss_icon_at_top)
|
||||
|
||||
publish_button_at_top = \
|
||||
getConfigParam(base_dir, 'publish_button_at_top')
|
||||
|
@ -3228,7 +3228,7 @@ if __name__ == "__main__":
|
|||
args.allow_local_network_access,
|
||||
args.max_feed_item_size_kb,
|
||||
args.publish_button_at_top,
|
||||
args.rssIconAtTop,
|
||||
args.rss_icon_at_top,
|
||||
args.iconsAsButtons,
|
||||
args.fullWidthTimelineButtonHeader,
|
||||
args.showPublishAsIcon,
|
||||
|
|
2
theme.py
2
theme.py
|
@ -210,7 +210,7 @@ def _setRssIconAtTop(base_dir: str, atTop: bool) -> bool:
|
|||
configJson = loadJson(configFilename, 0)
|
||||
if not configJson:
|
||||
return False
|
||||
configJson['rssIconAtTop'] = atTop
|
||||
configJson['rss_icon_at_top'] = atTop
|
||||
return saveJson(configJson, configFilename)
|
||||
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ def getLeftColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
http_prefix: str, translate: {},
|
||||
editor: bool, artist: bool,
|
||||
showBackButton: bool, timelinePath: str,
|
||||
rssIconAtTop: bool, showHeaderImage: bool,
|
||||
rss_icon_at_top: bool, showHeaderImage: bool,
|
||||
frontPage: bool, theme: str,
|
||||
accessKeys: {},
|
||||
shared_items_federated_domains: []) -> str:
|
||||
|
@ -148,7 +148,7 @@ def getLeftColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
'<button class="cancelbtn">' + \
|
||||
translate['Go Back'] + '</button></a>\n'
|
||||
|
||||
if (editor or rssIconAtTop) and not showHeaderImage:
|
||||
if (editor or rss_icon_at_top) and not showHeaderImage:
|
||||
htmlStr += '<div class="columnIcons">'
|
||||
|
||||
if editImageClass == 'leftColEdit':
|
||||
|
@ -190,14 +190,14 @@ def getLeftColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
' <a href="' + rssUrl + '"><img class="' + editImageClass + \
|
||||
'" loading="lazy" alt="' + rssTitle + '" title="' + rssTitle + \
|
||||
'" src="/icons/logorss.png" /></a>\n'
|
||||
if rssIconAtTop:
|
||||
if rss_icon_at_top:
|
||||
htmlStr += rssIconStr
|
||||
htmlStr += ' </div>\n'
|
||||
|
||||
if editImageClass == 'leftColEdit':
|
||||
htmlStr += ' </center>\n'
|
||||
|
||||
if (editor or rssIconAtTop) and not showHeaderImage:
|
||||
if (editor or rss_icon_at_top) and not showHeaderImage:
|
||||
htmlStr += '</div><br>'
|
||||
|
||||
# if showHeaderImage:
|
||||
|
@ -342,7 +342,7 @@ def getLeftColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
'<p class="login-text"><a href="/terms">' + \
|
||||
translate['Terms of Service'] + '</a></p>'
|
||||
|
||||
if linksFileContainsEntries and not rssIconAtTop:
|
||||
if linksFileContainsEntries and not rss_icon_at_top:
|
||||
htmlStr += '<br><div class="columnIcons">' + rssIconStr + '</div>'
|
||||
|
||||
return htmlStr
|
||||
|
@ -352,7 +352,7 @@ def htmlLinksMobile(cssCache: {}, base_dir: str,
|
|||
nickname: str, domainFull: str,
|
||||
http_prefix: str, translate,
|
||||
timelinePath: str, authorized: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
iconsAsButtons: bool,
|
||||
defaultTimeline: str,
|
||||
theme: str, accessKeys: {},
|
||||
|
@ -398,7 +398,7 @@ def htmlLinksMobile(cssCache: {}, base_dir: str,
|
|||
http_prefix, translate,
|
||||
editor, artist,
|
||||
False, timelinePath,
|
||||
rssIconAtTop, False, False,
|
||||
rss_icon_at_top, False, False,
|
||||
theme, accessKeys,
|
||||
shared_items_federated_domains)
|
||||
if editor and not _linksExist(base_dir):
|
||||
|
|
|
@ -54,7 +54,7 @@ def getRightColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
showBackButton: bool, timelinePath: str,
|
||||
showPublishButton: bool,
|
||||
showPublishAsIcon: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool,
|
||||
showHeaderImage: bool,
|
||||
|
@ -108,8 +108,9 @@ def getRightColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
nickname + '/' + rightImageFile + '" />\n' + \
|
||||
' </center>\n'
|
||||
|
||||
if (showPublishButton or editor or rssIconAtTop) and not showHeaderImage:
|
||||
htmlStr += '<div class="columnIcons">'
|
||||
if showPublishButton or editor or rss_icon_at_top:
|
||||
if not showHeaderImage:
|
||||
htmlStr += '<div class="columnIcons">'
|
||||
|
||||
if editImageClass == 'rightColEdit':
|
||||
htmlStr += '\n <center>\n'
|
||||
|
@ -166,7 +167,7 @@ def getRightColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
translate['Newswire RSS Feed'] + ' | " title="' + \
|
||||
translate['Newswire RSS Feed'] + '" src="/' + \
|
||||
'icons/logorss.png" /></a>\n'
|
||||
if rssIconAtTop:
|
||||
if rss_icon_at_top:
|
||||
htmlStr += rssIconStr
|
||||
|
||||
# show publish icon at top
|
||||
|
@ -191,8 +192,9 @@ def getRightColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
if showHeaderImage:
|
||||
htmlStr += ' <br>\n'
|
||||
|
||||
if (showPublishButton or editor or rssIconAtTop) and not showHeaderImage:
|
||||
htmlStr += '</div><br>'
|
||||
if showPublishButton or editor or rss_icon_at_top:
|
||||
if not showHeaderImage:
|
||||
htmlStr += '</div><br>'
|
||||
|
||||
# show the newswire lines
|
||||
newswireContentStr = \
|
||||
|
@ -201,7 +203,7 @@ def getRightColumnContent(base_dir: str, nickname: str, domainFull: str,
|
|||
htmlStr += newswireContentStr
|
||||
|
||||
# show the rss icon at the bottom, typically on the right hand side
|
||||
if newswireContentStr and not rssIconAtTop:
|
||||
if newswireContentStr and not rss_icon_at_top:
|
||||
htmlStr += '<br><div class="columnIcons">' + rssIconStr + '</div>'
|
||||
return htmlStr
|
||||
|
||||
|
@ -450,7 +452,7 @@ def htmlNewswireMobile(cssCache: {}, base_dir: str, nickname: str,
|
|||
timelinePath: str,
|
||||
showPublishAsIcon: bool,
|
||||
authorized: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
iconsAsButtons: bool,
|
||||
defaultTimeline: str,
|
||||
theme: str,
|
||||
|
@ -501,7 +503,7 @@ def htmlNewswireMobile(cssCache: {}, base_dir: str, nickname: str,
|
|||
moderator, editor,
|
||||
newswire, positiveVoting,
|
||||
False, timelinePath, showPublishButton,
|
||||
showPublishAsIcon, rssIconAtTop, False,
|
||||
showPublishAsIcon, rss_icon_at_top, False,
|
||||
authorized, False, theme,
|
||||
defaultTimeline, accessKeys)
|
||||
if editor and not newswire:
|
||||
|
|
|
@ -94,7 +94,7 @@ def _htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
|
|||
|
||||
|
||||
def htmlFrontScreen(signingPrivateKeyPem: str,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
cssCache: {}, iconsAsButtons: bool,
|
||||
defaultTimeline: str,
|
||||
recentPostsCache: {}, maxRecentPosts: int,
|
||||
|
@ -156,7 +156,7 @@ def htmlFrontScreen(signingPrivateKeyPem: str,
|
|||
getLeftColumnContent(base_dir, 'news', domainFull,
|
||||
http_prefix, translate,
|
||||
False, False,
|
||||
False, None, rssIconAtTop, True,
|
||||
False, None, rss_icon_at_top, True,
|
||||
True, theme, accessKeys,
|
||||
shared_items_federated_domains)
|
||||
profileHeaderStr += \
|
||||
|
|
|
@ -44,7 +44,7 @@ def htmlModeration(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, moderationActionStr: str,
|
||||
theme: str, peertubeInstances: [],
|
||||
|
@ -72,7 +72,7 @@ def htmlModeration(cssCache: {}, defaultTimeline: str,
|
|||
showPublishedDateOnly,
|
||||
newswire, False, False, artist, positiveVoting,
|
||||
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, moderationActionStr, theme,
|
||||
peertubeInstances, allow_local_network_access,
|
||||
textModeBanner, accessKeys, systemLanguage,
|
||||
|
|
|
@ -539,7 +539,7 @@ def _getProfileHeaderAfterSearch(base_dir: str,
|
|||
|
||||
|
||||
def htmlProfile(signingPrivateKeyPem: str,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
cssCache: {}, iconsAsButtons: bool,
|
||||
defaultTimeline: str,
|
||||
recentPostsCache: {}, maxRecentPosts: int,
|
||||
|
@ -568,7 +568,7 @@ def htmlProfile(signingPrivateKeyPem: str,
|
|||
return ""
|
||||
if isSystemAccount(nickname):
|
||||
return htmlFrontScreen(signingPrivateKeyPem,
|
||||
rssIconAtTop,
|
||||
rss_icon_at_top,
|
||||
cssCache, iconsAsButtons,
|
||||
defaultTimeline,
|
||||
recentPostsCache, maxRecentPosts,
|
||||
|
|
|
@ -361,7 +361,7 @@ def _htmlTimelineEnd(base_dir: str, nickname: str, domainFull: str,
|
|||
moderator: bool, editor: bool,
|
||||
newswire: {}, positiveVoting: bool,
|
||||
showPublishAsIcon: bool,
|
||||
rssIconAtTop: bool, publish_button_at_top: bool,
|
||||
rss_icon_at_top: bool, publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
defaultTimeline: str, accessKeys: {},
|
||||
boxName: str,
|
||||
|
@ -381,7 +381,8 @@ def _htmlTimelineEnd(base_dir: str, nickname: str, domainFull: str,
|
|||
newswire, positiveVoting,
|
||||
False, None, True,
|
||||
showPublishAsIcon,
|
||||
rssIconAtTop, publish_button_at_top,
|
||||
rss_icon_at_top,
|
||||
publish_button_at_top,
|
||||
authorized, True, theme,
|
||||
defaultTimeline, accessKeys)
|
||||
tlStr += ' <td valign="top" class="col-right" ' + \
|
||||
|
@ -436,7 +437,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool,
|
||||
moderationActionStr: str,
|
||||
|
@ -745,7 +746,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
leftColumnStr = \
|
||||
getLeftColumnContent(base_dir, nickname, domainFull,
|
||||
http_prefix, translate,
|
||||
editor, artist, False, None, rssIconAtTop,
|
||||
editor, artist, False, None, rss_icon_at_top,
|
||||
True, False, theme, accessKeys,
|
||||
shared_items_federated_domains)
|
||||
tlStr += ' <td valign="top" class="col-left" ' + \
|
||||
|
@ -792,7 +793,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
moderator, editor,
|
||||
newswire, positiveVoting,
|
||||
showPublishAsIcon,
|
||||
rssIconAtTop, publish_button_at_top,
|
||||
rss_icon_at_top, publish_button_at_top,
|
||||
authorized, theme,
|
||||
defaultTimeline, accessKeys,
|
||||
boxName,
|
||||
|
@ -810,7 +811,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
moderator, editor,
|
||||
newswire, positiveVoting,
|
||||
showPublishAsIcon,
|
||||
rssIconAtTop, publish_button_at_top,
|
||||
rss_icon_at_top, publish_button_at_top,
|
||||
authorized, theme,
|
||||
defaultTimeline, accessKeys,
|
||||
boxName,
|
||||
|
@ -958,7 +959,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
moderator, editor,
|
||||
newswire, positiveVoting,
|
||||
showPublishAsIcon,
|
||||
rssIconAtTop, publish_button_at_top,
|
||||
rss_icon_at_top, publish_button_at_top,
|
||||
authorized, theme,
|
||||
defaultTimeline, accessKeys,
|
||||
boxName,
|
||||
|
@ -1132,7 +1133,7 @@ def htmlShares(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1164,7 +1165,7 @@ def htmlShares(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1187,7 +1188,7 @@ def htmlWanted(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1219,7 +1220,7 @@ def htmlWanted(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1243,7 +1244,7 @@ def htmlInbox(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1275,7 +1276,7 @@ def htmlInbox(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1299,7 +1300,7 @@ def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1331,7 +1332,7 @@ def htmlBookmarks(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1355,7 +1356,7 @@ def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1382,7 +1383,7 @@ def htmlInboxDMs(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist, positiveVoting,
|
||||
showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1406,7 +1407,7 @@ def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1434,7 +1435,7 @@ def htmlInboxReplies(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1458,7 +1459,7 @@ def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1486,7 +1487,7 @@ def htmlInboxMedia(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1510,7 +1511,7 @@ def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1538,7 +1539,7 @@ def htmlInboxBlogs(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1562,7 +1563,7 @@ def htmlInboxFeatures(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool,
|
||||
theme: str,
|
||||
|
@ -1590,7 +1591,7 @@ def htmlInboxFeatures(cssCache: {}, defaultTimeline: str,
|
|||
newswire, False, False, False,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1614,7 +1615,7 @@ def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
|||
positiveVoting: bool, showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1641,7 +1642,7 @@ def htmlInboxNews(cssCache: {}, defaultTimeline: str,
|
|||
newswire, moderator, editor, artist,
|
||||
positiveVoting, showPublishAsIcon,
|
||||
fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
@ -1665,7 +1666,7 @@ def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
|||
showPublishAsIcon: bool,
|
||||
fullWidthTimelineButtonHeader: bool,
|
||||
iconsAsButtons: bool,
|
||||
rssIconAtTop: bool,
|
||||
rss_icon_at_top: bool,
|
||||
publish_button_at_top: bool,
|
||||
authorized: bool, theme: str,
|
||||
peertubeInstances: [],
|
||||
|
@ -1694,7 +1695,7 @@ def htmlOutbox(cssCache: {}, defaultTimeline: str,
|
|||
showPublishedDateOnly,
|
||||
newswire, False, False, artist, positiveVoting,
|
||||
showPublishAsIcon, fullWidthTimelineButtonHeader,
|
||||
iconsAsButtons, rssIconAtTop, publish_button_at_top,
|
||||
iconsAsButtons, rss_icon_at_top, publish_button_at_top,
|
||||
authorized, None, theme, peertubeInstances,
|
||||
allow_local_network_access, textModeBanner,
|
||||
accessKeys, systemLanguage, max_like_count,
|
||||
|
|
Loading…
Reference in New Issue