forked from indymedia/epicyon
Fix some breaks from merge
parent
e004327824
commit
685959b976
|
@ -131,14 +131,15 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
|
||||
|
||||
# Full Row of Buttons
|
||||
tlStr += \
|
||||
headerButtonsTimeline(defaultTimeline, boxName, pageNumber,
|
||||
translate, usersPath,
|
||||
minimal, moderator,
|
||||
manuallyApproveFollowers,
|
||||
baseDir, nickname,
|
||||
domain, iconsDir, timelineStartTime,
|
||||
iconsAsButtons)
|
||||
if fullWidthTimelineButtonHeader:
|
||||
tlStr += \
|
||||
headerButtonsTimeline(defaultTimeline, boxName, pageNumber,
|
||||
translate, usersPath,
|
||||
minimal, moderator,
|
||||
manuallyApproveFollowers,
|
||||
baseDir, nickname,
|
||||
domain, timelineStartTime,
|
||||
iconsAsButtons)
|
||||
|
||||
# start the timeline
|
||||
tlStr += '<div class="timeline">\n'
|
||||
|
@ -156,6 +157,16 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
|||
# center column containing posts
|
||||
tlStr += ' <div class="col-center">\n'
|
||||
|
||||
if not fullWidthTimelineButtonHeader:
|
||||
tlStr += \
|
||||
headerButtonsTimeline(defaultTimeline, boxName, pageNumber,
|
||||
translate, usersPath,
|
||||
minimal, moderator,
|
||||
manuallyApproveFollowers,
|
||||
baseDir, nickname,
|
||||
domain, timelineStartTime,
|
||||
iconsAsButtons)
|
||||
|
||||
# second row of buttons for moderator actions
|
||||
if moderator and boxName == 'moderation':
|
||||
tlStr += \
|
||||
|
@ -454,7 +465,6 @@ def headerButtonsTimeline(defaultTimeline: str,
|
|||
manuallyApproveFollowers: bool,
|
||||
baseDir: str,
|
||||
nickname: str, domain: str,
|
||||
iconsDir: str,
|
||||
timelineStartTime,
|
||||
iconsAsButtons: bool) -> str:
|
||||
"""Returns the header at the top of the timeline, containing
|
||||
|
|
|
@ -527,11 +527,7 @@ def htmlHeaderWithExternalStyle(cssFilename: str, lang='en') -> str:
|
|||
htmlStr += ' <head>\n'
|
||||
htmlStr += ' <meta charset="utf-8">\n'
|
||||
htmlStr += ' <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">\n'
|
||||
fontName, fontFormat = getFontFromCss(css)
|
||||
if fontName:
|
||||
htmlStr += ' <link rel="preload" as="font" type="' + \
|
||||
fontFormat + '" href="' + fontName + '" crossorigin>\n'
|
||||
cssFile = cssFilename.split('/')[-1]
|
||||
cssFile = '/' + cssFilename.split('/')[-1]
|
||||
# TODO: Clean up - default load only one base css file
|
||||
htmlStr += ' <link rel="stylesheet" href="base.css">\n'
|
||||
#htmlStr += ' <link rel="stylesheet" href="' + cssFile + '">\n'
|
||||
|
|
Loading…
Reference in New Issue