diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 23:38:41 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 23:38:41 +1200 |
| commit | 8f0ebb405d898623f02d22e99505ba944884f398 (patch) | |
| tree | 69e58bb7839a33d70c067423ca1397311f710172 /libpathod/templates/request_preview.html | |
| parent | ab59d6dccf0d1f3715021a6c7ec3afb11c0c02d3 (diff) | |
| download | mitmproxy-8f0ebb405d898623f02d22e99505ba944884f398.tar.gz mitmproxy-8f0ebb405d898623f02d22e99505ba944884f398.tar.bz2 mitmproxy-8f0ebb405d898623f02d22e99505ba944884f398.zip | |
Hide "go" button if crafting is off. Use configured crafting anchor point.
Diffstat (limited to 'libpathod/templates/request_preview.html')
| -rw-r--r-- | libpathod/templates/request_preview.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libpathod/templates/request_preview.html b/libpathod/templates/request_preview.html new file mode 100644 index 00000000..fe8a03e9 --- /dev/null +++ b/libpathod/templates/request_preview.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 %} |
