seriow/templates/index.html
2023-08-18 18:00:04 +02:00

45 lines
1.3 KiB
HTML

<!doctype html>
<html>
<head>
{% if autorefresh %}
<meta http-equiv="refresh" content="60">
{% endif %}
<title>Squeow</title>
<style>
table td { text-align: right; }
table th { text-align: left; }
table { border: 1px solid black; border-collapse: collapse; }
td, th { border: 1px solid black; padding: 0.3em; font-family: Monospace; font-size: 2em; }
</style>
</head>
<body>
<section>
<header> <h2>Variables</h2> </header>
<table border><tbody>
{% for key, value in variables.items() %}
<tr>
<th>{{key}}</th>
<td>{{value}}</td>
</tr>
{% endfor %}
</tbody></table>
</section>
<section>
<header> <h2>Docs</h2> </header>
<p>
<ul>
<li><a href="https://git.lattuga.net/boyska/seriow">Code</a></li>
<li><a href="{{url_for("swagger_ui_html")}}">API</a></li>
<li>
{% if autorefresh %}
<a href="{{url_for("html_index").include_query_params(refresh=0)}}">Disable autorefresh</a>
{% else %}
<a href="{{url_for("html_index").include_query_params(refresh=1)}}">Enable autorefresh</a>
{% endif %}
</ul>
</p>
</section>
</body>
</html>