diff --git a/app/css/ckanjs.css b/app/css/ckanjs.css index f8a4027..8c13ae7 100644 --- a/app/css/ckanjs.css +++ b/app/css/ckanjs.css @@ -71,6 +71,19 @@ ul.actions li { margin-bottom: 10px; } +.subsection { + margin-top: 15px; +} + +.subsection > h3 { + font-size: 1.9em; + margin-bottom: 0.5em; +} + +.notes-body h1, .notes-body h2, .notes-body h3, .notes-body h4, .notes-body h5 { + font-size: 120%; +} + /**************************************** * Config ***************************************/ diff --git a/lib/template/dataset-view.js b/lib/template/dataset-view.js index aa6f281..0473ced 100644 --- a/lib/template/dataset-view.js +++ b/lib/template/dataset-view.js @@ -1,7 +1,7 @@ CKAN.Templates.datasetView = ' \
\
\ - {{html dataset.snippet}} \ + ${dataset.snippet} \ Read more \
\
\ @@ -14,7 +14,6 @@ CKAN.Templates.datasetView = ' \ {{/if}} \
\
\ - {{if dataset.resources.length }} \

Resources

\ \ \ @@ -33,8 +32,10 @@ CKAN.Templates.datasetView = ' \ \ \ {{/each}} \ + {{if !dataset.resources.length }} \ + \ + {{/if}} \
${$value.format}
No resources.
\ - {{/if}} \
\ Add a resource \
\ @@ -42,7 +43,9 @@ CKAN.Templates.datasetView = ' \
\
\

Notes

\ - {{html dataset.notesHtml}} \ +
\ + {{html dataset.notesHtml}} \ +
\
\
\

Additional Information

\ diff --git a/test/fixtures.js b/test/fixtures.js index 3950f33..5aeb703 100644 --- a/test/fixtures.js +++ b/test/fixtures.js @@ -78,7 +78,7 @@ var datasets = [ license: "OKD Compliant::Other (Open)", notes_rendered: "

Some test notes

A 3rd level heading

Some bolded text.

Some italicized text.

Foreign characters: u with umlaut ü 66-style quote “ foreign word: thümb

Needs escaping: left arrow <

http://ckan.net/

", url: "http://www.annakarenina.com", - notes: "Some test notes ### A 3rd level heading **Some bolded text.** *Some italicized text.* Foreign characters: u with umlaut ü 66-style quote “ foreign word: thümb Needs escaping: left arrow < ", + notes: "Some test notes\n\n### A 3rd level heading\n\n**Some bolded text.** *Some italicized text.* Foreign characters: u with umlaut ü 66-style quote “ foreign word: thümb Needs escaping: left arrow < ", title: "A Novel By Tolstoy", ratings_average: null, extras: {