summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/data.jade33
1 files changed, 29 insertions, 4 deletions
diff --git a/views/data.jade b/views/data.jade
index cb181f3..8fbd05e 100644
--- a/views/data.jade
+++ b/views/data.jade
@@ -7,11 +7,18 @@ block content
form(action="/render")
p
label URL:
- input(name="url", value="http://p2k12.bitraf.no/checkins-trygvis.php")
+ input(name="url", value="#{url}")
input(type="submit", value="Render")
+ form(action="http://redbot.org/?")
+ p
+ input(name="uri", value="#{url}", type="hidden")
+ input(type="submit", value="Check with redbot.org")
+
ul
li
+ a(href="#meta") Meta
+ li
a(href="#items") Items
li
a(href="#headers") Headers
@@ -20,6 +27,22 @@ block content
li
a(href="#formatted-body") Formatted body
+ a(id="meta")
+ h1
+ a(href="#meta") Meta
+
+ table
+ tr
+ td Version
+ td #{doc.version}
+ tr
+ td URI
+ td
+ if typeof doc.uri == 'string'
+ a(href="#{doc.uri}") #{doc.uri}
+ else
+ span No URI
+
a(id="items")
h1
a(href="#items") Items
@@ -36,9 +59,11 @@ block content
h1
a(href="#headers") Headers
pre
- each value, key in headers
- span #{key}: #{value}
- br
+ table
+ each value, key in headers
+ tr
+ td #{key}:
+ td #{value}
a(id="body")
h1