From 08b95f6aa1fd82842287d099e8c19c911d657584 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 29 Jul 2012 16:33:45 +1200 Subject: Refactor preview display pages. --- libpathod/templates/request_preview.html | 58 +++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 16 deletions(-) (limited to 'libpathod/templates/request_preview.html') diff --git a/libpathod/templates/request_preview.html b/libpathod/templates/request_preview.html index 40f7771e..e4efd9d0 100644 --- a/libpathod/templates/request_preview.html +++ b/libpathod/templates/request_preview.html @@ -1,26 +1,52 @@ {% extends "frame.html" %} {% block body %} -

Preview

+ + +
+
+

Specification:

+
+
+ {% include "request_previewform.html" %} +
+
{% if syntaxerror %} -

Error: {{ syntaxerror }}

-
{{ marked }}
+
+
+

Error:

+
+
+

{{ syntaxerror }}

+
{{ marked }}
+
+
{% elif error %} -

{{ error }}

+
+
+

Error:

+
+
+

{{ error }}

+
+
{% else %} -

Spec:

- -
{{ spec }}
- -

Request:

+
+
+

Request:

+
+
+
{{ output }}
+ {% if pauses %} +

Note: pauses are skipped when generating previews!

+ {% endif %} +
+
+{% endif %} -
{{ output }}
+{% endblock %} - {% if pauses %} -

Note: pauses are skipped when generating previews!

- {% endif %} -{% endif %} -{% include "request_previewform.html" %} -{% endblock %} -- cgit v1.2.3