From 7d109457436fbf8fee80bbc19bb4920dabe7d798 Mon Sep 17 00:00:00 2001 From: Aron Carroll Date: Wed, 23 May 2012 12:07:14 +0100 Subject: [PATCH] [2375] Add base html for the new resource page This currently is not styled and excludes the JavaScript required for the data preview. --- ckan/templates/package/resource_read.html | 109 ++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 ckan/templates/package/resource_read.html diff --git a/ckan/templates/package/resource_read.html b/ckan/templates/package/resource_read.html new file mode 100644 index 00000000000..5f235159c97 --- /dev/null +++ b/ckan/templates/package/resource_read.html @@ -0,0 +1,109 @@ + + + + + + + + + ${h.dataset_display_name(c.package)} / + ${h.resource_display_name(c.resource)} - Dataset - Resource + + + +
+ + +
+ +
+
+
+

${h.resource_display_name(c.resource)}

+ +
+ ${c.resource.get('description') or '(No description)'} + +
${h.markdown_extract(c.package.get('notes'))}
+ From the Dataset +
+
+
+
+
+

Preview

+ + +
+
+
+
+ +
+
+

Additional Information

+ + + + + + + + + + + + + + + + + +
FieldValue
Last Updated${h.time_ago_in_words_from_str(c.resource['last_modified'], granularity='day')}
Licence${h.snippet('snippets/license.html', dataset=c.pkg_dict)}
+
+
+ +
+ ${data_api_help(c.datastore_api)} +
+
+ +
+
+

Resource Information

+
    +
  • Unknown
  • +
  • CSV
  • +
  • ${h.snippet('snippets/license.html', dataset=c.pkg_dict)}
  • +
+
+ ${h.snippet('snippets/social.html')} +
+ +