Link back to default timeline

merge-requests/8/head
Bob Mottram 2020-11-01 11:09:52 +00:00
parent 02db1fbda7
commit 68fa08eacb
2 changed files with 12 additions and 6 deletions

View File

@ -9520,6 +9520,7 @@ class PubServer(BaseHTTPRequestHandler):
showPublishAsIcon = self.server.showPublishAsIcon
rssIconAtTop = self.server.rssIconAtTop
iconsAsButtons = self.server.iconsAsButtons
defaultTimeline = self.server.defaultTimeline
msg = htmlNewswireMobile(self.server.cssCache,
self.server.baseDir,
nickname,
@ -9533,7 +9534,8 @@ class PubServer(BaseHTTPRequestHandler):
showPublishAsIcon,
authorized,
rssIconAtTop,
iconsAsButtons).encode('utf-8')
iconsAsButtons,
defaultTimeline).encode('utf-8')
self._set_headers('text/html', len(msg),
cookie, callingDomain)
self._write(msg)
@ -9554,6 +9556,7 @@ class PubServer(BaseHTTPRequestHandler):
timelinePath = \
'/users/' + nickname + '/' + self.server.defaultTimeline
iconsAsButtons = self.server.iconsAsButtons
defaultTimeline = self.server.defaultTimeline
msg = htmlLinksMobile(self.server.cssCache,
self.server.baseDir, nickname,
self.server.domainFull,
@ -9562,7 +9565,8 @@ class PubServer(BaseHTTPRequestHandler):
timelinePath,
authorized,
self.server.rssIconAtTop,
iconsAsButtons).encode('utf-8')
iconsAsButtons,
defaultTimeline).encode('utf-8')
self._set_headers('text/html', len(msg), cookie, callingDomain)
self._write(msg)
self.server.GETbusy = False

View File

@ -5915,7 +5915,8 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
httpPrefix: str, translate,
timelinePath: str, authorized: bool,
rssIconAtTop: bool,
iconsAsButtons: bool) -> str:
iconsAsButtons: bool,
defaultTimeline: str) -> str:
"""Show the left column links within mobile view
"""
htmlStr = ''
@ -5942,7 +5943,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
htmlStr = htmlHeader(cssFilename, profileStyle)
htmlStr += \
'<a href="/users/' + nickname + '">' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
'<img loading="lazy" class="timeline-banner" ' + \
'src="/users/news/banner.png" /></a>\n'
@ -5969,7 +5970,8 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
showPublishAsIcon: bool,
authorized: bool,
rssIconAtTop: bool,
iconsAsButtons: bool) -> str:
iconsAsButtons: bool,
defaultTimeline: str) -> str:
"""Shows the mobile version of the newswire right column
"""
htmlStr = ''
@ -6003,7 +6005,7 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
htmlStr = htmlHeader(cssFilename, profileStyle)
htmlStr += \
'<a href="/users/' + nickname + '">' + \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
'<img loading="lazy" class="timeline-banner" ' + \
'src="/users/news/banner.png" /></a>\n'