summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-29 11:24:09 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-29 11:24:09 +0200
commit6293830fe485918fdc152b923675f5d2ee56e068 (patch)
tree2856b47f8a8ab7561f410f1ac90eca795cf25d79 /views
parent4ed7271b1eca560fbad60c240cad23e85ac286f8 (diff)
downloadcollection-json-explorer-6293830fe485918fdc152b923675f5d2ee56e068.tar.gz
collection-json-explorer-6293830fe485918fdc152b923675f5d2ee56e068.tar.bz2
collection-json-explorer-6293830fe485918fdc152b923675f5d2ee56e068.tar.xz
collection-json-explorer-6293830fe485918fdc152b923675f5d2ee56e068.zip
o Prettier example links.
Diffstat (limited to 'views')
-rw-r--r--views/index.jade11
1 files changed, 6 insertions, 5 deletions
diff --git a/views/index.jade b/views/index.jade
index 86cfffa..caf2954 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -12,10 +12,11 @@ block content
h2 Examples
- p Taken from
- a(url='http://amundsen.com/media-types/collection/examples/') Mike Admundsen's examples
+ p Taken from
+ a(href='http://amundsen.com/media-types/collection/examples/') Mike Admundsen's examples
+ ul
each example in examples
- form(action='/render')
- input(name='url', type='hidden', value='http://#{host}/examples/from-spec/#{example}.collection+json')
- input(type='submit', value='#{example}')
+ li
+ - var u='http://' + host + '/render?url=' + encodeURIComponent('http://' + host + '/examples/from-spec/' + example + '.collection+json')
+ a(href='#{u}') #{example}