mirror of https://gitlab.com/bashrc2/epicyon
Person options info button
parent
416c7d1188
commit
4c0e099056
22
daemon.py
22
daemon.py
|
@ -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:
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue