diff --git a/webapp_column_left.py b/webapp_column_left.py index f4a9dcb1..ab92f0bf 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -306,7 +306,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str, # Full row "navbar" if defaultTimeline == 'tlfeatures': # Show "tab" links instead of standard "buttons" - htmlStr += headerNewsTabs('linksmobile', translate, usersPath, baseDir, userPages) + htmlStr += headerNewsTabs('linksmobile', translate, usersPath, baseDir, authorized, userPages) # Close banner div htmlStr += '\n' diff --git a/webapp_column_right.py b/webapp_column_right.py index 5effe409..41a32858 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -61,6 +61,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, if ':' in domain: domain = domain.split(':') + publishButtonStr = None if authorized: # only show the publish button if logged in, otherwise replace it with # a login button @@ -70,15 +71,16 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, 'title="' + translate['Publish a news article'] + '">' + \ '\n' - else: - # if not logged in then replace the publish button with - # a login button - publishButtonStr = \ - ' \n' +# NOTE: Removed from this fork as is handled by 'htmlFooter' in webapp_utils.py +# else: +# # if not logged in then replace the publish button with +# # a login button +# publishButtonStr = \ +# ' \n' # show publish button at the top if needed - if publishButtonAtTop: + if publishButtonStr and publishButtonAtTop: htmlStr += '
\n'
- profileHeaderStr += \
+ profileHeaderStr = ' \n'
+
+ # TODO: News instances should ignore personalised banners
+ # Currently uses the 'news' actor banner - as it remains unchanged
+ profileHeaderStr += (f"\t"
+ f"{translate['Features']}\n"
+ f"\t \n'
+
+ # TODO: Should probably use a more generic class, easier to re-use and help simplify CSS
+ # NOTE: Related also to class "page" added to 'webapp_create_post.py'
+ profileHeaderStr += '\n"
+ f"\t\t#IndymediaBack\n"
+ f"\t \n")
+
+ # Show "tab" links instead of standard "buttons"
+ profileHeaderStr += headerNewsTabs('tlfeatures', translate, '/users/news', baseDir, authorized, None)
+
+ # Close banner div
+ profileHeaderStr += '\n'
+
+ iconsPath = getIconsWebPath(baseDir)
+ leftColumnStr = \
getLeftColumnContent(baseDir, 'news', domainFull,
httpPrefix, translate,
- False, False, None, rssIconAtTop, True,
- True, theme)
- profileHeaderStr += ' | \n'
- profileHeaderStr += ' \n'
+ iconsPath, False,
+ False, None, rssIconAtTop, True,
+ True)
+ profileHeaderStr += ' \n' + \
+ leftColumnStr + ' \n'
profileStr = profileHeaderStr
- cssFilename = baseDir + '/epicyon-profile.css'
+ cssFiles = []
+
+ # TODO: Clean up - default load only one base css file
+ # default css
+ cssFiles.append(baseDir + '/epicyon-profile.css')
if os.path.isfile(baseDir + '/epicyon.css'):
- cssFilename = baseDir + '/epicyon.css'
+ cssFiles[0] = baseDir + '/epicyon.css'
+
+ # TODO: Clean up and remove this override
+ cssFiles[0] = 'base.css'
+
+ # Get theme-specific css if exists - must be named '\n'
licenseStr = ''
bannerFile, bannerFilename = \
@@ -156,21 +178,27 @@ def htmlFrontScreen(rssIconAtTop: bool,
showPublishedDateOnly,
peertubeInstances) + licenseStr
+ # end of div main
+ profileStr += ' \n'
+
# Footer which is only used for system accounts
- profileFooterStr = ' | \n'
- profileFooterStr += ' \n' - profileFooterStr += \ + + iconsPath = getIconsWebPath(baseDir) + rightColumnStr = \ getRightColumnContent(baseDir, 'news', domainFull, httpPrefix, translate, False, False, newswire, False, False, None, False, False, - False, True, authorized, True, theme) - profileFooterStr += ' | \n' - profileFooterStr += '