ui: Add error and info templates and display debug mode.
This commit is contained in:
4 files changed
+56
-22
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html><html lang="en"><head>
|
||||
<meta charset="UTF-8">
|
||||
<link type="text/css" media="all" href="/static/css/simple/style.css" rel="stylesheet">
|
||||
<link rel=icon sizes="32x32" type="image/png" href="/static/images/favicon-32.png">
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>{{ title_str }}</h2>
|
||||
<p>Error: {{ message_str }}</p>
|
||||
<p><a href=\'/\'>home</a></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -13,6 +13,13 @@
|
||||
<h2>{{ h2 }}</h2>
|
||||
{% endif %}
|
||||
|
||||
{% if debug_mode == true %}
|
||||
<p>Debug mode: Active</p>
|
||||
{% endif %}
|
||||
{% if debug_ui_mode == true %}
|
||||
<p>Debug UI mode: Active</p>
|
||||
{% endif %}
|
||||
|
||||
{% if ws_url %}
|
||||
<script>
|
||||
var ws = new WebSocket("{{ ws_url }}"),
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html><html lang="en"><head>
|
||||
<meta charset="UTF-8">
|
||||
<link type="text/css" media="all" href="/static/css/simple/style.css" rel="stylesheet">
|
||||
<link rel=icon sizes="32x32" type="image/png" href="/static/images/favicon-32.png">
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>{{ title_str }}</h2>
|
||||
<p>Info: {{ message_str }}</p>
|
||||
<p><a href=\'/\'>home</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user