Sets up the data structures and kicks off the rendering of the system admin page
()
| 322 | |
| 323 | @APP.route("/sys/admin", methods=["GET"]) |
| 324 | def admin(): |
| 325 | """ |
| 326 | Sets up the data structures and kicks off the rendering of the system admin page |
| 327 | """ |
| 328 | server_info = piscsi_cmd.get_server_info() |
| 329 | |
| 330 | return response( |
| 331 | template="admin.html", |
| 332 | page_title=_("PiSCSI System Administration"), |
| 333 | log_levels=server_info["log_levels"], |
| 334 | current_log_level=server_info["current_log_level"], |
| 335 | locales=get_supported_locales(), |
| 336 | themes=TEMPLATE_THEMES, |
| 337 | netatalk_configured=sys_cmd.running_proc("afpd"), |
| 338 | samba_configured=sys_cmd.running_proc("smbd"), |
| 339 | ftp_configured=sys_cmd.running_proc("vsftpd"), |
| 340 | macproxy_configured=sys_cmd.running_proc("macproxy"), |
| 341 | webmin_configured=sys_cmd.running_proc("miniserv.pl"), |
| 342 | ) |
| 343 | |
| 344 | |
| 345 | @APP.route("/upload", methods=["GET"]) |
nothing calls this directly
no test coverage detected