System monitor section within admin profile

main
Bob Mottram 2021-10-20 11:38:41 +01:00
parent 21a3f18132
commit 9e9f970c96
18 changed files with 49 additions and 17 deletions

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "عرّف عن نفسك وحدد التاريخ والوقت اللذين ترغب في الإقامة فيهما",
"Members": "أعضاء",
"Join": "انضم",
"Leave": "يترك"
"Leave": "يترك",
"System Monitor": "مراقب النظام"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Presenteu-vos i especifiqueu la data i lhora en què voleu romandre",
"Members": "Membres",
"Join": "Uneix-te",
"Leave": "Marxa"
"Leave": "Marxa",
"System Monitor": "Monitor del sistema"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Cyflwynwch eich hun a nodwch y dyddiad a'r amser pan fyddwch yn dymuno aros",
"Members": "Aelodau",
"Join": "Ymunwch",
"Leave": "Gadewch"
"Leave": "Gadewch",
"System Monitor": "Monitor System"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Stellen Sie sich vor und geben Sie Datum und Uhrzeit Ihres Aufenthalts an",
"Members": "Mitglieder",
"Join": "Verbinden",
"Leave": "Verlassen"
"Leave": "Verlassen",
"System Monitor": "Systemmonitor"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Introduce yourself and specify the date and time when you wish to stay",
"Members": "Members",
"Join": "Join",
"Leave": "Leave"
"Leave": "Leave",
"System Monitor": "System Monitor"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Preséntese y especifique la fecha y hora en que desea quedarse",
"Members": "Miembros",
"Join": "Entrar",
"Leave": "Dejar"
"Leave": "Dejar",
"System Monitor": "Monitor del sistema"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Présentez-vous et précisez la date et l'heure auxquelles vous souhaitez rester",
"Members": "Membres",
"Join": "Rejoindre",
"Leave": "Laisser"
"Leave": "Laisser",
"System Monitor": "Moniteur système"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Cuir tú féin in aithne agus sonraigh an dáta agus an t-am ar mhaith leat fanacht",
"Members": "Baill",
"Join": "Bí páirteach",
"Leave": "Fág"
"Leave": "Fág",
"System Monitor": "Monatóir Córais"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "अपना परिचय दें और वह तारीख और समय निर्दिष्ट करें जब आप रुकना चाहते हैं",
"Members": "सदस्यों",
"Join": "शामिल हों",
"Leave": "छोड़ना"
"Leave": "छोड़ना",
"System Monitor": "सिस्टम मॉनिटर"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Presentati e specifica la data e l'ora in cui desideri soggiornare",
"Members": "Membri",
"Join": "Aderire",
"Leave": "Lasciare"
"Leave": "Lasciare",
"System Monitor": "Monitor di sistema"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "自己紹介をし、滞在したい日時を指定してください",
"Members": "メンバー",
"Join": "加入",
"Leave": "離れる"
"Leave": "離れる",
"System Monitor": "システムモニター"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Xwe bidin nasîn û roj û dema ku hûn dixwazin bimînin bimînin diyar bikin",
"Members": "Endam",
"Join": "Bihevgirêdan",
"Leave": "Terikandin"
"Leave": "Terikandin",
"System Monitor": "System Monitor"
}

View File

@ -483,5 +483,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Introduce yourself and specify the date and time when you wish to stay",
"Members": "Members",
"Join": "Join",
"Leave": "Leave"
"Leave": "Leave",
"System Monitor": "System Monitor"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Apresente-se e especifique a data e hora em que deseja ficar",
"Members": "Membros",
"Join": "Juntar",
"Leave": "Sair"
"Leave": "Sair",
"System Monitor": "Monitor de Sistema"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Представьтесь и укажите дату и время, когда вы хотите остаться",
"Members": "Члены",
"Join": "Присоединиться",
"Leave": "Оставлять"
"Leave": "Оставлять",
"System Monitor": "Системный монитор"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Jitambulishe na taja tarehe na saa unapotaka kukaa",
"Members": "Wanachama",
"Join": "Jiunge",
"Leave": "Ondoka"
"Leave": "Ondoka",
"System Monitor": "Ufuatiliaji wa Mfumo"
}

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "自我介绍并指定您希望入住的日期和时间",
"Members": "会员",
"Join": "加入",
"Leave": "离开"
"Leave": "离开",
"System Monitor": "系统监视器"
}

View File

@ -1415,6 +1415,16 @@ def _htmlEditProfileDangerZone(translate: {}) -> str:
return editProfileForm
def _htmlSystemMonitor(translate: {}) -> str:
"""Links to performance graphs
"""
systemMonitorStr = beginEditSection(translate['System Monitor'])
systemMonitorStr += '<p><a href="/performance?graph=get">📊 GET</a></p>'
systemMonitorStr += '<p><a href="/performance?graph=post">📊 POST</a></p>'
systemMonitorStr += endEditSection()
return systemMonitorStr
def _htmlEditProfileSkills(baseDir: str, nickname: str, domain: str,
translate: {}) -> str:
"""skills section of Edit Profile screen
@ -2038,6 +2048,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
roleAssignStr = ''
peertubeStr = ''
libretranslateStr = ''
systemMonitorStr = ''
graphicsStr = ''
sharesFederationStr = ''
@ -2063,6 +2074,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
mediaInstanceStr,
blogsInstanceStr,
newsInstanceStr)
systemMonitorStr = _htmlSystemMonitor(translate)
instanceTitle = getConfigParam(baseDir, 'instanceTitle')
editProfileForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
@ -2123,6 +2135,9 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
# automatic translations
editProfileForm += libretranslateStr
# system monitor
editProfileForm += systemMonitorStr
# Filtering and blocking section
replyIntervalHours = getReplyIntervalHours(baseDir, nickname, domain,
defaultReplyIntervalHours)