summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-29 00:21:11 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-29 00:21:11 +0200
commite81f24cc6e2de2ed314a1c912c4cb4853b4c13fe (patch)
treea55638cb602902a8dc95ff703f8ef3371784a5a5 /views
parentffc96483ac114306643e2681ed37f3374433ebea (diff)
downloadcollection-json-explorer-e81f24cc6e2de2ed314a1c912c4cb4853b4c13fe.tar.gz
collection-json-explorer-e81f24cc6e2de2ed314a1c912c4cb4853b4c13fe.tar.bz2
collection-json-explorer-e81f24cc6e2de2ed314a1c912c4cb4853b4c13fe.tar.xz
collection-json-explorer-e81f24cc6e2de2ed314a1c912c4cb4853b4c13fe.zip
o Adding links on each item.
Diffstat (limited to 'views')
-rw-r--r--views/data.jade8
-rw-r--r--views/index.jade3
-rw-r--r--views/layout.jade4
3 files changed, 8 insertions, 7 deletions
diff --git a/views/data.jade b/views/data.jade
index 3051d63..cb181f3 100644
--- a/views/data.jade
+++ b/views/data.jade
@@ -1,8 +1,8 @@
extends layout
block content
- h1= title
- p Welcome to #{title}
+ h1 Collection+JSON Explorer
+ p Viewing #{url}
form(action="/render")
p
@@ -24,7 +24,9 @@ block content
h1
a(href="#items") Items
each item, i in doc.items
- h2 Item ##{i+1}
+ a(id="item-#{i+1}")
+ h2
+ a(href="#item-#{i+1}") Item ##{i+1}
h3 Data
ul
each data in item.data
diff --git a/views/index.jade b/views/index.jade
index 55ed3d4..af774d4 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -1,8 +1,7 @@
extends layout
block content
- h1= title
- p Welcome to #{title}
+ h1 Collection+JSON Explorer
form(action="/render")
p
diff --git a/views/layout.jade b/views/layout.jade
index 1b7b305..8fe7f51 100644
--- a/views/layout.jade
+++ b/views/layout.jade
@@ -1,7 +1,7 @@
doctype 5
html
head
- title= title
+ title Collection+JSON Explorer
link(rel='stylesheet', href='/stylesheets/style.css')
body
- block content \ No newline at end of file
+ block content