Added DOCTYPE and title to HTTP configuration status page.

This commit is contained in:
Johannes Findeisen 2022-09-08 07:25:39 +02:00
commit 384cd2071f

View file

@ -40,7 +40,8 @@ class HTTPServer:
@cherrypy.expose @cherrypy.expose
def config(self): def config(self):
return '<html><head><meta http-equiv="refresh" content="60"></head><body><pre ' \ return '<!DOCTYPE html><html><head><title>[uplink] configuration</title><meta ' + \
'http-equiv="refresh" content="60"></head><body><pre ' + \
'style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \ 'style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \
json.dumps(vars(self.__configuration), sort_keys=True, indent=4) + \ json.dumps(vars(self.__configuration), sort_keys=True, indent=4) + \
'</pre></body></html>' '</pre></body></html>'