summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-10-21 13:06:06 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-10-28 11:29:03 +0200
commit20a94dbc3e3e6e36655982a5569a6d7e4d0abedd (patch)
treee0bf2592cb5077aa98dc2cd33f1d3dd7a41425bf /ogcp/templates
parentc493d243496e80016845aa16cfa59773cb75be71 (diff)
Add legacy log
Future patches will deprecate this log functionality in favour of more robust solutions.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/legacy/log.html10
-rw-r--r--ogcp/templates/commands.html2
2 files changed, 12 insertions, 0 deletions
diff --git a/ogcp/templates/actions/legacy/log.html b/ogcp/templates/actions/legacy/log.html
new file mode 100644
index 0000000..08d3328
--- /dev/null
+++ b/ogcp/templates/actions/legacy/log.html
@@ -0,0 +1,10 @@
+{% extends 'base.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% block content %}
+
+<h1 class="m-5">{{_('Client log')}}</h1>
+
+<pre>{{ log }}</pre>
+
+{% endblock %}
diff --git a/ogcp/templates/commands.html b/ogcp/templates/commands.html
index 1e7dc84..b965867 100644
--- a/ogcp/templates/commands.html
+++ b/ogcp/templates/commands.html
@@ -40,5 +40,7 @@
form="scopesForm" formaction="{{ url_for('action_image_create') }}" formmethod="get">
<input class="btn btn-light" type="submit" value="{{ _('Set boot mode') }}"
form="scopesForm" formaction="{{ url_for('action_mode') }}" formmethod="get">
+ <input class="btn btn-light" type="submit" value="{{ _('Log') }}"
+ form="scopesForm" formaction="{{ url_for('action_legacy_log') }}" formmethod="get">
{% endblock %}