Person options info button

merge-requests/8/head
Bob Mottram 2020-12-16 18:20:48 +00:00
parent 416c7d1188
commit 4c0e099056
2 changed files with 22 additions and 2 deletions

View File

@ -1877,6 +1877,28 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy = False
return
# person options screen, Info button
# See htmlPersonOptions
if '&submitInfo=' in optionsConfirmParams:
if isModerator(self.server.baseDir, chooserNickname):
if debug:
print('Showing info for ' + optionsActor)
msg = \
htmlAccountInfo(self.server.cssCache,
self.server.translate,
self.server.baseDir,
self.server.httpPrefix,
chooserNickname,
self.server.domain,
self.server.port,
optionsActor,
self.server.debug)
self._set_headers('text/html', len(msg),
cookie, callingDomain)
self._write(msg)
self.server.POSTbusy = False
return
# person options screen, snooze button
# See htmlPersonOptions
if '&submitSnooze=' in optionsConfirmParams:

View File

@ -228,8 +228,6 @@ def htmlPersonOptions(defaultTimeline: str,
translate['Report'] + '</button>\n'
if isModerator(baseDir, nickname):
optionsStr += ' <input type="hidden" ' + \
'name="moderationAction" value="' + handleShown + '"><br>\n'
optionsStr += \
' <button type="submit" class="button" name="submitInfo">' + \
translate['Info'] + '</button>\n'