diff options
Diffstat (limited to 'pathod/templates/request_preview.html')
-rw-r--r-- | pathod/templates/request_preview.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pathod/templates/request_preview.html b/pathod/templates/request_preview.html new file mode 100644 index 00000000..25d73679 --- /dev/null +++ b/pathod/templates/request_preview.html @@ -0,0 +1,44 @@ +{% extends "frame.html" %} {% block body %} +<div class="page-header"> + <h1>pathoc preview</h1> +</div> + +<div style="margin-bottom: 20px" class="row"> + <div class="span2 header"> + Specification: + </div> + <div class="span10"> + {% include "request_previewform.html" %} + </div> +</div> + +{% if syntaxerror %} +<div class="row"> + <div class="span2 header"> + Error: + </div> + <div class="span10"> + <p style="color: #ff0000">{{ syntaxerror }}</p> + <pre>{{ marked }}</pre> + </div> +</div> +{% elif error %} +<div class="row"> + <div class="span2 header"> + Error: + </div> + <div class="span10"> + <p style="color: #ff0000">{{ error }}</p> + </div> +</div> +{% else %} +<div class="row"> + <div class="span2 header"> + Request: + </div> + <div class="span10"> + <pre>{{ output }}</pre> + <p>Note: pauses are skipped when generating previews!</p> + </div> +</div> +{% endif %} {% endblock %} |