2020-12-31 01:39:32 +00:00
|
|
|
<!doctype html>
|
2021-11-07 00:25:02 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2020-12-31 01:39:32 +00:00
|
|
|
<title>RaSCSI Control Page</title>
|
2021-09-07 19:38:56 +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">
|
|
|
|
|
2020-12-31 01:39:32 +00:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
2021-09-22 05:51:06 +00:00
|
|
|
|
2021-09-22 17:34:16 +00:00
|
|
|
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.9.3/min/dropzone.min.js">
|
2021-09-22 05:51:06 +00:00
|
|
|
</script>
|
2021-11-07 00:25:02 +00:00
|
|
|
</head>
|
2020-12-31 01:39:32 +00:00
|
|
|
|
2021-11-07 00:25:02 +00:00
|
|
|
<body>
|
2020-12-31 01:39:32 +00:00
|
|
|
<div class="content">
|
|
|
|
<div class="header">
|
2021-11-27 04:41:10 +00:00
|
|
|
{% if auth_active %}
|
|
|
|
{% if username %}
|
|
|
|
<span style="display: inline-block; width: 100%; color: white; background-color: green; text-align: center; vertical-align: center; font-family: Arial, Helvetica, sans-serif;">Logged in as <em>{{ username }}</em> – <a href="/logout">Log Out</a></span>
|
|
|
|
{% else %}
|
|
|
|
<span style="display: inline-block; width: 100%; color: white; background-color: red; text-align: center; vertical-align: center; font-family: Arial, Helvetica, sans-serif;">
|
|
|
|
<form method="POST" action="/login">
|
|
|
|
<div>Log In to Use Web Interface</div>
|
|
|
|
<input type="text" name="username" placeholder="Username">
|
|
|
|
<input type="password" name="password" placeholder="Password">
|
|
|
|
<input type="submit" value="Login">
|
|
|
|
</form>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<span style="display: inline-block; width: 100%; color: white; background-color: green; text-align: center; vertical-align: center; font-family: Arial, Helvetica, sans-serif;">Web Interface Authentication Disabled – See <a href="https://github.com/akuker/RASCSI/wiki/Web-Interface#Security_Notice" target="_blank">Wiki</a> for more information</span>
|
|
|
|
{% endif %}
|
2021-09-19 21:29:01 +00:00
|
|
|
<table width="100%">
|
|
|
|
<tbody>
|
|
|
|
<tr style="background-color: black;">
|
|
|
|
<td style="background-color: black;">
|
2021-11-27 04:41:10 +00:00
|
|
|
<a href="http://github.com/akuker/RASCSI" target="_blank">
|
2021-09-19 21:29:01 +00:00
|
|
|
<h1>RaSCSI - 68kmla Edition</h1>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-12-31 01:39:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="flash">
|
|
|
|
{% for category, message in get_flashed_messages(with_categories=true) %}
|
|
|
|
{% if category == "stdout" or category == "stderr" %}
|
2021-11-07 00:25:02 +00:00
|
|
|
<pre>{{ message }}</pre>
|
2020-12-31 01:39:32 +00:00
|
|
|
{% else %}
|
2021-11-07 00:25:02 +00:00
|
|
|
<div class="{{ category }}">{{ message }}</div>
|
2020-12-31 01:39:32 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
2021-11-07 00:25:02 +00:00
|
|
|
{% block content %}{% endblock content %}
|
2020-12-31 01:39:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="footer">
|
2021-11-27 04:41:10 +00:00
|
|
|
<center><tt>RaSCSI version: <strong>{{ version }} <a href="https://github.com/akuker/RASCSI/commit/{{ running_env['git'] }}" target="_blank">{{ running_env["git"][:7] }}</a></strong></tt></center>
|
2021-11-07 00:25:02 +00:00
|
|
|
<center><tt>Pi environment: {{ running_env["env"] }}</tt></center>
|
2020-12-31 01:39:32 +00:00
|
|
|
</div>
|
2021-09-19 21:29:01 +00:00
|
|
|
</div>
|
2021-11-07 00:25:02 +00:00
|
|
|
</body>
|