mirror of https://gitlab.com/bashrc2/epicyon
User path for performance graph
parent
9e9f970c96
commit
2873c4705b
|
@ -1415,12 +1415,14 @@ def _htmlEditProfileDangerZone(translate: {}) -> str:
|
||||||
return editProfileForm
|
return editProfileForm
|
||||||
|
|
||||||
|
|
||||||
def _htmlSystemMonitor(translate: {}) -> str:
|
def _htmlSystemMonitor(nickname: str, translate: {}) -> str:
|
||||||
"""Links to performance graphs
|
"""Links to performance graphs
|
||||||
"""
|
"""
|
||||||
systemMonitorStr = beginEditSection(translate['System Monitor'])
|
systemMonitorStr = beginEditSection(translate['System Monitor'])
|
||||||
systemMonitorStr += '<p><a href="/performance?graph=get">📊 GET</a></p>'
|
systemMonitorStr += '<p><a href="/users/' + nickname + \
|
||||||
systemMonitorStr += '<p><a href="/performance?graph=post">📊 POST</a></p>'
|
'/performance?graph=get">📊 GET</a></p>'
|
||||||
|
systemMonitorStr += '<p><a href="/users/' + nickname + \
|
||||||
|
'/performance?graph=post">📊 POST</a></p>'
|
||||||
systemMonitorStr += endEditSection()
|
systemMonitorStr += endEditSection()
|
||||||
return systemMonitorStr
|
return systemMonitorStr
|
||||||
|
|
||||||
|
@ -2074,7 +2076,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
mediaInstanceStr,
|
mediaInstanceStr,
|
||||||
blogsInstanceStr,
|
blogsInstanceStr,
|
||||||
newsInstanceStr)
|
newsInstanceStr)
|
||||||
systemMonitorStr = _htmlSystemMonitor(translate)
|
systemMonitorStr = _htmlSystemMonitor(nickname, translate)
|
||||||
|
|
||||||
instanceTitle = getConfigParam(baseDir, 'instanceTitle')
|
instanceTitle = getConfigParam(baseDir, 'instanceTitle')
|
||||||
editProfileForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
|
editProfileForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
|
||||||
|
|
Loading…
Reference in New Issue