From b920f6812a5b37cf6cc02ca87880cfbe2fe0f6d4 Mon Sep 17 00:00:00 2001 From: Konstantin Sivakov Date: Wed, 20 Sep 2017 18:25:01 +0200 Subject: [PATCH 1/5] add download option from dump functionality --- ckan/templates/package/resource_read.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ckan/templates/package/resource_read.html b/ckan/templates/package/resource_read.html index 960881810dc..2e36ac820ec 100644 --- a/ckan/templates/package/resource_read.html +++ b/ckan/templates/package/resource_read.html @@ -32,6 +32,7 @@ {% endif %} {% if res.url and h.is_url(res.url) %}
  • +
    {% if res.resource_type in ('listing', 'service') %} {{ _('View') }} @@ -43,6 +44,24 @@ {{ _('Download') }} {% endif %} + {%if res.url_type == 'upload' and res.datastore_active %} + + + {%endif%} +
  • {% endif %} {% endblock %} From 46e9c4b91ea556fe3b8a3428c1e801ae8d178508 Mon Sep 17 00:00:00 2001 From: Konstantin Sivakov Date: Thu, 21 Sep 2017 16:31:06 +0200 Subject: [PATCH 2/5] add block, remove check if the flag is upload --- ckan/templates/package/resource_read.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ckan/templates/package/resource_read.html b/ckan/templates/package/resource_read.html index 2e36ac820ec..b2157b49832 100644 --- a/ckan/templates/package/resource_read.html +++ b/ckan/templates/package/resource_read.html @@ -44,23 +44,24 @@ {{ _('Download') }} {% endif %} - {%if res.url_type == 'upload' and res.datastore_active %} + {% block donwload_resource_button %} + {%if res.datastore_active %} - + {%endif%} {% endblock %} {% endif %} From 287f83d9fed3111c602585759a16ef4ed7584676 Mon Sep 17 00:00:00 2001 From: Konstantin Sivakov Date: Thu, 19 Oct 2017 14:33:13 +0200 Subject: [PATCH 3/5] fix typo --- ckan/templates/package/resource_read.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ckan/templates/package/resource_read.html b/ckan/templates/package/resource_read.html index b2157b49832..6e6a812172c 100644 --- a/ckan/templates/package/resource_read.html +++ b/ckan/templates/package/resource_read.html @@ -44,16 +44,16 @@ {{ _('Download') }} {% endif %} - {% block donwload_resource_button %} + {% block download_resource_button %} {%if res.datastore_active %}