summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-28 23:22:57 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-28 23:22:57 +0200
commit9c933e4eb578b77d625efe487866e7433d729666 (patch)
tree9e6914d8c417294df7c25b517410f0ce3165e84a /views
downloadcollection-json-explorer-9c933e4eb578b77d625efe487866e7433d729666.tar.gz
collection-json-explorer-9c933e4eb578b77d625efe487866e7433d729666.tar.bz2
collection-json-explorer-9c933e4eb578b77d625efe487866e7433d729666.tar.xz
collection-json-explorer-9c933e4eb578b77d625efe487866e7433d729666.zip
o Initial import of application/vnd.collection+json explorer.
Diffstat (limited to 'views')
-rw-r--r--views/data.jade49
-rw-r--r--views/index.jade11
-rw-r--r--views/layout.jade7
3 files changed, 67 insertions, 0 deletions
diff --git a/views/data.jade b/views/data.jade
new file mode 100644
index 0000000..3051d63
--- /dev/null
+++ b/views/data.jade
@@ -0,0 +1,49 @@
+extends layout
+
+block content
+ h1= title
+ p Welcome to #{title}
+
+ form(action="/render")
+ p
+ label URL:
+ input(name="url", value="http://p2k12.bitraf.no/checkins-trygvis.php")
+ input(type="submit", value="Render")
+
+ ul
+ li
+ a(href="#items") Items
+ li
+ a(href="#headers") Headers
+ li
+ a(href="#body") Raw body
+ li
+ a(href="#formatted-body") Formatted body
+
+ a(id="items")
+ h1
+ a(href="#items") Items
+ each item, i in doc.items
+ h2 Item ##{i+1}
+ h3 Data
+ ul
+ each data in item.data
+ li #{data.name}: #{data.value}
+
+ a(id="headers")
+ h1
+ a(href="#headers") Headers
+ pre
+ each value, key in headers
+ span #{key}: #{value}
+ br
+
+ a(id="body")
+ h1
+ a(href="#body") Raw body
+ pre= raw
+
+ a(id="formatted-body")
+ h1
+ a(href="#formatted-body") Formatted body
+ pre= formattedRaw
diff --git a/views/index.jade b/views/index.jade
new file mode 100644
index 0000000..55ed3d4
--- /dev/null
+++ b/views/index.jade
@@ -0,0 +1,11 @@
+extends layout
+
+block content
+ h1= title
+ p Welcome to #{title}
+
+ form(action="/render")
+ p
+ label URL:
+ input(name="url", value="http://p2k12.bitraf.no/checkins-trygvis.php")
+ input(type="submit", value="Render")
diff --git a/views/layout.jade b/views/layout.jade
new file mode 100644
index 0000000..1b7b305
--- /dev/null
+++ b/views/layout.jade
@@ -0,0 +1,7 @@
+doctype 5
+html
+ head
+ title= title
+ link(rel='stylesheet', href='/stylesheets/style.css')
+ body
+ block content \ No newline at end of file