diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-02 23:17:32 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-02 23:17:32 +0200 |
commit | e1bcf8ffdd858706f50232896e25ca82ce911517 (patch) | |
tree | 6397c53d11deb9bf67718cc7de1d864da68b0db1 /views | |
parent | 021dc27bd0101f24cd615b187938fbadf5fdcc89 (diff) | |
download | collection-json-explorer-e1bcf8ffdd858706f50232896e25ca82ce911517.tar.gz collection-json-explorer-e1bcf8ffdd858706f50232896e25ca82ce911517.tar.bz2 collection-json-explorer-e1bcf8ffdd858706f50232896e25ca82ce911517.tar.xz collection-json-explorer-e1bcf8ffdd858706f50232896e25ca82ce911517.zip |
o Better error messages when unable to parse JSON.
o Fixing typos.
Diffstat (limited to 'views')
-rw-r--r-- | views/data.jade | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/data.jade b/views/data.jade index 49d0579..78d8b76 100644 --- a/views/data.jade +++ b/views/data.jade @@ -66,7 +66,7 @@ block meta // TODO: Add ability to show the raw part of the collection. block items if collection.items.length == 0 - p Collection has to items. + p Collection has no items. else // p The feed has #{collection.items.length} items. each item, i in collection.items @@ -91,7 +91,7 @@ block items block queries if collection.queries.length == 0 - p Collection has to queries. + p Collection has no queries. else each query in collection.queries - var name = query.prompt || query.name || 'Unnamed query' @@ -155,6 +155,9 @@ block navbar block content if typeof err != 'undefined' + section(id='error') + div(class='page-error') + h1 Error p Error rendering #{url} p= err |