summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-07 16:09:23 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-07 16:12:43 +0200
commit1d3a63d75fce583032333a9d088a0d6d6569f58d (patch)
tree23805370570fe29e05706e55d3ce4d8d04facb58 /views
parent8c53aec1ce4d34cc245a755498c068a15ca99997 (diff)
downloadcollection-json-explorer-1d3a63d75fce583032333a9d088a0d6d6569f58d.tar.gz
collection-json-explorer-1d3a63d75fce583032333a9d088a0d6d6569f58d.tar.bz2
collection-json-explorer-1d3a63d75fce583032333a9d088a0d6d6569f58d.tar.xz
collection-json-explorer-1d3a63d75fce583032333a9d088a0d6d6569f58d.zip
o Splitting 'hrefs' so the user can click on any path segment.
Diffstat (limited to 'views')
-rw-r--r--views/data.jade7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/data.jade b/views/data.jade
index dd79c12..dda1c55 100644
--- a/views/data.jade
+++ b/views/data.jade
@@ -6,13 +6,16 @@ mixin get_name(link, prefix, i)
- var prefix = typeof prefix == 'string' ? prefix + ': ' : ''
|#{prefix + (name || prompt || '#' + i)}
+// TODO: Show show a 'copy' button to copy the entire link
block href
if typeof href != 'string'
div: i no href
else
div
- a(href=urlgenerator.render(href)) #{href}
- | (opens in explorer)
+ - var splits = urlgenerator.split(href)
+ for split in splits
+ a(href=urlgenerator.render(split[1]), title='Explore #{split[1]}') #{split[0]}
+ |
block link
- var href = link.href