From 4f0353199c23732da675e15d811e55ccfff41a4e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Oct 2020 12:48:13 +0100 Subject: [PATCH] System accounts have columns --- webinterface.py | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 7c19cf24..4dbc710c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3421,6 +3421,19 @@ def htmlProfile(defaultTimeline: str, if isSystemAccount(nickname): profileHeaderStr = '
\n' profileHeaderStr += '
' + loginButton + '
\n' + + profileHeaderStr += '\n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileHeaderStr += ' \n' + profileFooterStr += ' \n' + profileFooterStr += ' \n' + profileFooterStr += ' \n' + profileFooterStr += '
\n' + # TODO add links + profileHeaderStr += ' \n' else: profileHeaderStr = '
\n' profileHeaderStr += '
\n' @@ -3538,8 +3551,21 @@ def htmlProfile(defaultTimeline: str, htmlProfileShares(actor, translate, nickname, domainFull, extraJson) + licenseStr + + # Footer which is only used for system accounts + profileFooterStr = '' + if isSystemAccount(nickname): + profileFooterStr = '
\n' + # TODO add newswire + profileFooterStr += '
\n' + profileStr = \ - htmlHeader(cssFilename, profileStyle) + profileStr + htmlFooter() + htmlHeader(cssFilename, profileStyle) + \ + profileStr + profileFooterStr + htmlFooter() return profileStr