aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/templates/preview_request.html
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/templates/preview_request.html')
-rw-r--r--libpathod/templates/preview_request.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/libpathod/templates/preview_request.html b/libpathod/templates/preview_request.html
new file mode 100644
index 00000000..fe8a03e9
--- /dev/null
+++ b/libpathod/templates/preview_request.html
@@ -0,0 +1,23 @@
+{% extends "frame.html" %}
+{% block body %}
+
+<h1>Preview</h1>
+
+{% if syntaxerror %}
+ <h2> Error: {{ syntaxerror }} </h2>
+ <pre>{{ marked }}</pre>
+{% elif error %}
+ <h2> Error </h2>
+ <p style="color: #ff0000">{{ error }}</p>
+{% else %}
+ <h2>Spec:</h2>
+
+ <pre>{{ spec }}</pre>
+
+ <h2>Request:</h2>
+
+ <pre>{{ output }}</pre>
+
+{% endif %}
+{% include "request_previewform.html" %}
+{% endblock %}