mirror of https://gitlab.com/bashrc2/epicyon
Text mode banner for person options
parent
8a499bb574
commit
37c0ea8e83
|
@ -5469,7 +5469,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.dormantMonths,
|
self.server.dormantMonths,
|
||||||
backToPath,
|
backToPath,
|
||||||
lockedAccount,
|
lockedAccount,
|
||||||
movedTo, alsoKnownAs).encode('utf-8')
|
movedTo, alsoKnownAs,
|
||||||
|
self.server.textModeBanner).encode('utf-8')
|
||||||
msglen = len(msg)
|
msglen = len(msg)
|
||||||
self._set_headers('text/html', msglen,
|
self._set_headers('text/html', msglen,
|
||||||
cookie, callingDomain)
|
cookie, callingDomain)
|
||||||
|
|
|
@ -24,6 +24,7 @@ from followingCalendar import receivingCalendarEvents
|
||||||
from webapp_utils import htmlHeaderWithExternalStyle
|
from webapp_utils import htmlHeaderWithExternalStyle
|
||||||
from webapp_utils import htmlFooter
|
from webapp_utils import htmlFooter
|
||||||
from webapp_utils import getBrokenLinkSubstitute
|
from webapp_utils import getBrokenLinkSubstitute
|
||||||
|
from webapp_utils import htmlKeyboardNavigation
|
||||||
|
|
||||||
|
|
||||||
def htmlPersonOptions(defaultTimeline: str,
|
def htmlPersonOptions(defaultTimeline: str,
|
||||||
|
@ -49,7 +50,8 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
backToPath: str,
|
backToPath: str,
|
||||||
lockedAccount: bool,
|
lockedAccount: bool,
|
||||||
movedTo: str,
|
movedTo: str,
|
||||||
alsoKnownAs: []) -> str:
|
alsoKnownAs: [],
|
||||||
|
textModeBanner: str) -> str:
|
||||||
"""Show options for a person: view/follow/block/report
|
"""Show options for a person: view/follow/block/report
|
||||||
"""
|
"""
|
||||||
optionsDomain, optionsPort = getDomainFromActor(optionsActor)
|
optionsDomain, optionsPort = getDomainFromActor(optionsActor)
|
||||||
|
@ -114,6 +116,7 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
instanceTitle = \
|
instanceTitle = \
|
||||||
getConfigParam(baseDir, 'instanceTitle')
|
getConfigParam(baseDir, 'instanceTitle')
|
||||||
optionsStr = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
|
optionsStr = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
|
||||||
|
optionsStr += htmlKeyboardNavigation(textModeBanner, {})
|
||||||
optionsStr += '<br><br>\n'
|
optionsStr += '<br><br>\n'
|
||||||
optionsStr += '<div class="options">\n'
|
optionsStr += '<div class="options">\n'
|
||||||
optionsStr += ' <div class="optionsAvatar">\n'
|
optionsStr += ' <div class="optionsAvatar">\n'
|
||||||
|
|
Loading…
Reference in New Issue