2020-12-31 01:39:32 +00:00
<!doctype html>
2022-10-07 20:13:29 +00:00
< html lang = "{{ env[" locale " ] } } " >
2021-11-07 00:25:02 +00:00
< head >
2022-12-25 15:23:16 +00:00
< title > {{ page_title }} [{{ env["host"] }}]< / title >
2021-09-07 19:38:56 +00:00
2022-10-07 20:13:29 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1, maximum-scale=1" / >
< link rel = "apple-touch-icon" sizes = "57x57" href = "/pwa/apple-icon-57x57.png" >
< link rel = "apple-touch-icon" sizes = "60x60" href = "/pwa/apple-icon-60x60.png" >
< link rel = "apple-touch-icon" sizes = "72x72" href = "/pwa/apple-icon-72x72.png" >
< link rel = "apple-touch-icon" sizes = "76x76" href = "/pwa/apple-icon-76x76.png" >
< link rel = "apple-touch-icon" sizes = "114x114" href = "/pwa/apple-icon-114x114.png" >
< link rel = "apple-touch-icon" sizes = "120x120" href = "/pwa/apple-icon-120x120.png" >
< link rel = "apple-touch-icon" sizes = "144x144" href = "/pwa/apple-icon-144x144.png" >
< link rel = "apple-touch-icon" sizes = "152x152" href = "/pwa/apple-icon-152x152.png" >
< link rel = "apple-touch-icon" sizes = "180x180" href = "/pwa/apple-icon-180x180.png" >
< link rel = "icon" type = "image/png" sizes = "192x192" href = "/pwa/android-icon-192x192.png" >
< link rel = "icon" type = "image/png" sizes = "32x32" href = "/pwa/favicon-32x32.png" >
< link rel = "icon" type = "image/png" sizes = "96x96" href = "/pwa/favicon-96x96.png" >
< link rel = "icon" type = "image/png" sizes = "16x16" href = "/pwa/favicon-16x16.png" >
< link rel = "manifest" href = "/pwa/manifest.json" >
< meta name = "msapplication-TileColor" content = "#ffffff" >
< meta name = "msapplication-TileImage" content = "/pwa/ms-icon-144x144.png" >
< meta name = "theme-color" content = "#ffffff" >
2021-09-07 19:38:56 +00:00
2022-11-14 17:32:15 +00:00
< link rel = "stylesheet" href = "{{ url_for('static', filename=current_theme_stylesheet) }}" >
2021-11-07 00:25:02 +00:00
< / head >
2020-12-31 01:39:32 +00:00
2022-12-11 03:31:37 +00:00
< body class = "{{ body_classes|join(' ') }}" >
2020-12-31 01:39:32 +00:00
< div class = "header" >
2022-09-25 23:00:18 +00:00
{% if env["auth_active"] %}
2022-11-14 17:32:15 +00:00
{% if env["logged_in"] %}
< div align = "center" class = "login-status logged-in" >
< span class = "logged-in-as-text" > {{ _("Logged in as < em > %(username)s< / em > ", username=env["username"]) }}< / span >
< span class = "separator" > -< / span >
< a href = "/logout" > {{ _("Log Out") }}< / a >
< / div >
{% else %}
< div align = "center" class = "login-status logged-out" >
< form method = "POST" action = "/login" >
2022-12-10 04:34:46 +00:00
< div class = "login-form-title" > {{ _("Log in to use Web Interface") }}< / div >
2022-11-14 17:32:15 +00:00
< span >
2022-12-10 04:34:46 +00:00
< label for = "username" > {{ _("Username:") }}< / label >
2022-11-14 17:32:15 +00:00
< input type = "text" name = "username" id = "username" >
< / span >
< span >
2022-12-10 04:34:46 +00:00
< label for = "password" > {{ _("Password:") }}< / label >
2022-11-14 17:32:15 +00:00
< input type = "password" name = "password" id = "password" >
< / span >
< input type = "submit" value = "Login" >
< / form >
< / div >
{% endif %}
2021-11-27 04:41:10 +00:00
{% else %}
2022-11-14 17:32:15 +00:00
< div align = "center" class = "login-status authentication-disabled" >
2022-12-11 03:31:37 +00:00
< span class = "authentication-disabled-text" > {{ _("Web Interface Authentication Disabled") }}< / span >
< span class = "separator" > -< / span >
< span class = "wiki-help-text" > {{ _("See < a href = \"%(url)s\" target = \"_blank\" > Wiki< / a > for more information", url="https://github.com/PiSCSI/piscsi/wiki/Web-Interface#enable-authentication") }}< / span >
2022-11-14 17:32:15 +00:00
< / div >
2021-11-27 04:41:10 +00:00
{% endif %}
2022-11-14 17:32:15 +00:00
< div align = "center" class = "title" >
2022-10-07 20:13:29 +00:00
< a href = "/" >
2022-12-10 04:34:46 +00:00
< h1 >
< span > {{ _("PiSCSI") }}< / span >
< span class = "subtitle" > {{ _("Control Page") }}< / span >
< / h1 >
2022-10-07 20:13:29 +00:00
< / a >
< / div >
2022-11-14 17:32:15 +00:00
< div class = "hostname" >
2022-12-10 04:34:46 +00:00
< span class = "label" > {{ _("System Name:") }}< / span >
2022-11-20 18:20:32 +00:00
< span > {{ env['system_name'] }}< / span >
2022-10-07 20:13:29 +00:00
< / div >
2020-12-31 01:39:32 +00:00
< / div >
2022-11-14 17:32:15 +00:00
2023-09-04 15:08:42 +00:00
< div class = "throttle-notice" >
2023-09-01 06:23:12 +00:00
{% if (env["throttle_status"]|length > 0) %}
{% for category, response in env["throttle_status"] %}
< div class = "{{ category }}" >
< span class = "message" title = "{{ response['msg'] }}" > < a
2023-09-04 15:08:42 +00:00
href="https://www.raspberrypi.com/documentation/computers/configuration.html#undervoltage-warning">{{ response['msg'] }}< / a > < / span >
2023-09-01 06:23:12 +00:00
< / div >
{% endfor %}
{% endif %}
< / div >
2021-11-27 04:59:25 +00:00
< div class = "flash" id = "flash" >
2022-11-14 17:32:15 +00:00
{% if get_flashed_messages(): %}
{% for category, message in get_flashed_messages(with_categories=true) %}
< div class = "{{ category }}" >
{% if category == "stdout" or category == "stderr" %}
< pre > {{ message }}< / pre >
{% else %}
< div > {{ message }}< / div >
{% endif %}
< a style = "display: none;" href = "/" > < / a >
< / div >
{% endfor %}
2020-12-31 01:39:32 +00:00
{% endif %}
< / div >
2022-11-14 17:32:15 +00:00
2020-12-31 01:39:32 +00:00
< div class = "content" >
2022-11-14 17:32:15 +00:00
{{ content_class }}
2021-11-07 00:25:02 +00:00
{% block content %}{% endblock content %}
2020-12-31 01:39:32 +00:00
< / div >
2022-10-07 20:13:29 +00:00
< div align = "center" class = "footer" >
2022-11-14 17:32:15 +00:00
< div class = "theme-change-hint" >
{% if current_theme == "classic" %}
{{ _('Switch to the < a href = "/theme?name=%(theme)s" > %(theme)s theme< / a > ', theme="modern") }}
{% else %}
{{ _('Switch to the < a href = "/theme?name=%(theme)s" > %(theme)s theme< / a > ', theme="classic") }}
{% endif %}
< / div >
2022-10-07 20:13:29 +00:00
< div >
2023-11-01 13:28:53 +00:00
{% if env["netatalk_configured"] %}
{{ _("Mac AFP file sharing is enabled.") }}
{% if env["webmin_configured"] %}
< a href = "https://{{ env[" ip_addr " ] } } :10000 / netatalk2 / " target = \"_blank\" >
{{ ("Server administration") }}
< / a >
{% endif %}
{% else %}
{{ _("Mac AFP file sharing is disabled.") }}
{% endif %}
2023-09-24 16:30:54 +00:00
< / div >
< div >
2023-11-01 13:28:53 +00:00
{% if env["samba_configured"] %}
{{ _("Windows SMB file sharing is enabled.") }}
{% if env["webmin_configured"] %}
< a href = "https://{{ env[" ip_addr " ] } } :10000 / samba / " target = \"_blank\" >
{{ ("Server administration") }}
< / a >
{% endif %}
{% else %}
{{ _("Windows SMB file sharing is disabled.") }}
{% endif %}
2023-09-24 16:30:54 +00:00
< / div >
< div >
2023-11-01 13:28:53 +00:00
{% if env["ftp_configured"] %}
{{ _("FTP file sharing is enabled.") }}
{% else %}
{{ _("FTP file sharing is disabled.") }}
{% endif %}
2022-10-07 20:13:29 +00:00
< / div >
< div >
2023-11-01 13:28:53 +00:00
{% if env["macproxy_configured"] %}
{{ _("Macproxy is running at %(ip_addr)s (default port 5000)", ip_addr=env['ip_addr']) }}
{% else %}
{{ _("Macproxy is disabled.") }}
{% endif %}
2022-10-07 20:13:29 +00:00
< / div >
2023-09-24 16:30:54 +00:00
2022-10-07 20:13:29 +00:00
< div >
2023-11-01 13:28:53 +00:00
{{ _("PiSCSI software version:") }} < b > {{ env["version"] }}< / b >
2022-10-07 20:13:29 +00:00
< / div >
< div >
2022-11-20 18:20:32 +00:00
{{ _("Hardware and OS:") }} {{ env["running_env"]["env"] }}
< / div >
< div >
{{ _("Network Address:") }} {{ env["host"] }} ({{ env["ip_addr"] }})
2022-10-07 20:13:29 +00:00
< / div >
2020-12-31 01:39:32 +00:00
< / div >
2021-11-07 00:25:02 +00:00
< / body >