mirror of https://gitlab.com/bashrc2/epicyon
Link back to default timeline
parent
02db1fbda7
commit
68fa08eacb
|
@ -9520,6 +9520,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
showPublishAsIcon = self.server.showPublishAsIcon
|
showPublishAsIcon = self.server.showPublishAsIcon
|
||||||
rssIconAtTop = self.server.rssIconAtTop
|
rssIconAtTop = self.server.rssIconAtTop
|
||||||
iconsAsButtons = self.server.iconsAsButtons
|
iconsAsButtons = self.server.iconsAsButtons
|
||||||
|
defaultTimeline = self.server.defaultTimeline
|
||||||
msg = htmlNewswireMobile(self.server.cssCache,
|
msg = htmlNewswireMobile(self.server.cssCache,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
nickname,
|
nickname,
|
||||||
|
@ -9533,7 +9534,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
showPublishAsIcon,
|
showPublishAsIcon,
|
||||||
authorized,
|
authorized,
|
||||||
rssIconAtTop,
|
rssIconAtTop,
|
||||||
iconsAsButtons).encode('utf-8')
|
iconsAsButtons,
|
||||||
|
defaultTimeline).encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg),
|
self._set_headers('text/html', len(msg),
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
|
@ -9554,6 +9556,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
timelinePath = \
|
timelinePath = \
|
||||||
'/users/' + nickname + '/' + self.server.defaultTimeline
|
'/users/' + nickname + '/' + self.server.defaultTimeline
|
||||||
iconsAsButtons = self.server.iconsAsButtons
|
iconsAsButtons = self.server.iconsAsButtons
|
||||||
|
defaultTimeline = self.server.defaultTimeline
|
||||||
msg = htmlLinksMobile(self.server.cssCache,
|
msg = htmlLinksMobile(self.server.cssCache,
|
||||||
self.server.baseDir, nickname,
|
self.server.baseDir, nickname,
|
||||||
self.server.domainFull,
|
self.server.domainFull,
|
||||||
|
@ -9562,7 +9565,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
timelinePath,
|
timelinePath,
|
||||||
authorized,
|
authorized,
|
||||||
self.server.rssIconAtTop,
|
self.server.rssIconAtTop,
|
||||||
iconsAsButtons).encode('utf-8')
|
iconsAsButtons,
|
||||||
|
defaultTimeline).encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg), cookie, callingDomain)
|
self._set_headers('text/html', len(msg), cookie, callingDomain)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.GETbusy = False
|
self.server.GETbusy = False
|
||||||
|
|
|
@ -5915,7 +5915,8 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
|
||||||
httpPrefix: str, translate,
|
httpPrefix: str, translate,
|
||||||
timelinePath: str, authorized: bool,
|
timelinePath: str, authorized: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
iconsAsButtons: bool) -> str:
|
iconsAsButtons: bool,
|
||||||
|
defaultTimeline: str) -> str:
|
||||||
"""Show the left column links within mobile view
|
"""Show the left column links within mobile view
|
||||||
"""
|
"""
|
||||||
htmlStr = ''
|
htmlStr = ''
|
||||||
|
@ -5942,7 +5943,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
|
||||||
|
|
||||||
htmlStr = htmlHeader(cssFilename, profileStyle)
|
htmlStr = htmlHeader(cssFilename, profileStyle)
|
||||||
htmlStr += \
|
htmlStr += \
|
||||||
'<a href="/users/' + nickname + '">' + \
|
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
|
||||||
'<img loading="lazy" class="timeline-banner" ' + \
|
'<img loading="lazy" class="timeline-banner" ' + \
|
||||||
'src="/users/news/banner.png" /></a>\n'
|
'src="/users/news/banner.png" /></a>\n'
|
||||||
|
|
||||||
|
@ -5969,7 +5970,8 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
|
||||||
showPublishAsIcon: bool,
|
showPublishAsIcon: bool,
|
||||||
authorized: bool,
|
authorized: bool,
|
||||||
rssIconAtTop: bool,
|
rssIconAtTop: bool,
|
||||||
iconsAsButtons: bool) -> str:
|
iconsAsButtons: bool,
|
||||||
|
defaultTimeline: str) -> str:
|
||||||
"""Shows the mobile version of the newswire right column
|
"""Shows the mobile version of the newswire right column
|
||||||
"""
|
"""
|
||||||
htmlStr = ''
|
htmlStr = ''
|
||||||
|
@ -6003,7 +6005,7 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str,
|
||||||
|
|
||||||
htmlStr = htmlHeader(cssFilename, profileStyle)
|
htmlStr = htmlHeader(cssFilename, profileStyle)
|
||||||
htmlStr += \
|
htmlStr += \
|
||||||
'<a href="/users/' + nickname + '">' + \
|
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
|
||||||
'<img loading="lazy" class="timeline-banner" ' + \
|
'<img loading="lazy" class="timeline-banner" ' + \
|
||||||
'src="/users/news/banner.png" /></a>\n'
|
'src="/users/news/banner.png" /></a>\n'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue