Header markup

alt-html-css
Bob Mottram 2020-12-27 16:57:15 +00:00
parent 11d804bb4e
commit 3bc7dfb837
5 changed files with 15 additions and 5 deletions

View File

@ -325,11 +325,13 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
# top banner
editLinksForm += \
'<header>\n' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '" alt="' + \
translate['Switch to timeline view'] + '">\n'
editLinksForm += '<img loading="lazy" class="timeline-banner" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n'
'/users/' + nickname + '/' + bannerFile + '" /></a>\n' + \
'</header>\n'
editLinksForm += \
'<form enctype="multipart/form-data" method="POST" ' + \

View File

@ -516,11 +516,13 @@ def htmlEditNewswire(cssCache: {}, translate: {}, baseDir: str, path: str,
# top banner
editNewswireForm += \
'<header>' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '" alt="' + \
translate['Switch to timeline view'] + '">\n'
editNewswireForm += '<img loading="lazy" class="timeline-banner" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n'
'/users/' + nickname + '/' + bannerFile + '" /></a>\n' + \
'</header>'
editNewswireForm += \
'<form enctype="multipart/form-data" method="POST" ' + \

View File

@ -558,11 +558,13 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
newPostForm = htmlHeaderWithExternalStyle(cssFilename)
newPostForm += \
'<header>\n' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '" alt="' + \
translate['Switch to timeline view'] + '">\n'
newPostForm += '<img loading="lazy" class="timeline-banner" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n'
'/users/' + nickname + '/' + bannerFile + '" /></a>\n' + \
'</header>\n'
mentionsStr = ''
for m in mentions:

View File

@ -334,11 +334,13 @@ def htmlSearch(cssCache: {}, translate: {},
if os.path.isfile(searchBannerFilename):
usersPath = '/users/' + searchNickname
followStr += \
'<header>\n' + \
'<a href="' + usersPath + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '" alt="' + \
translate['Switch to timeline view'] + '">\n'
followStr += '<img loading="lazy" class="timeline-banner" src="' + \
usersPath + '/' + searchBannerFile + '" /></a>\n'
usersPath + '/' + searchBannerFile + '" /></a>\n' + \
'</header>\n'
# show the search box
followStr += '<div class="follow">\n'

View File

@ -368,11 +368,13 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
# banner and row of buttons
tlStr += \
'<header>\n' + \
'<a href="/users/' + nickname + '" title="' + \
translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '">\n'
tlStr += '<img loading="lazy" class="timeline-banner" src="' + \
usersPath + '/' + bannerFile + '" /></a>\n'
usersPath + '/' + bannerFile + '" /></a>\n' + \
'</header>\n'
if fullWidthTimelineButtonHeader:
tlStr += \