summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-14 01:39:35 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-14 01:39:35 +0200
commit1d6204901ccffa029c7beec7ff0fc15ee60a964f (patch)
treef7638e6aef39658fb3614af92b7e108e271e27a1 /views
parentd549928c12e79bae8069fe5fe4e067ad0c608101 (diff)
downloadcollection-json-explorer-1d6204901ccffa029c7beec7ff0fc15ee60a964f.tar.gz
collection-json-explorer-1d6204901ccffa029c7beec7ff0fc15ee60a964f.tar.bz2
collection-json-explorer-1d6204901ccffa029c7beec7ff0fc15ee60a964f.tar.xz
collection-json-explorer-1d6204901ccffa029c7beec7ff0fc15ee60a964f.zip
o Always showing the returned http response, including body.
Diffstat (limited to 'views')
-rw-r--r--views/data.jade7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/data.jade b/views/data.jade
index c757498..3d844a3 100644
--- a/views/data.jade
+++ b/views/data.jade
@@ -349,7 +349,12 @@ block inner_content
h1 Formatted Body
div(class='row-fluid')
div(class='span12')
- pre= formattedBody
+ if typeof rawBody == 'string'
+ if rawBody.length == 0
+ p: i No body
+ else
+ pre= JSON.stringify(parsedBody, null, ' ')
+ | #{parsedBody}
if typeof httpResponse != 'undefined'
section(id='http-response')