From 78bde974b9f8cb8dbaf5722e2ce69cd0ecade5bd Mon Sep 17 00:00:00 2001 From: John Martin Date: Thu, 21 Mar 2013 10:56:39 +0000 Subject: [PATCH] [#25] Adds confirmation dialog to reharvest button --- ckanext/harvest/templates_new/source/admin_base.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ckanext/harvest/templates_new/source/admin_base.html b/ckanext/harvest/templates_new/source/admin_base.html index 920f823..8705520 100644 --- a/ckanext/harvest/templates_new/source/admin_base.html +++ b/ckanext/harvest/templates_new/source/admin_base.html @@ -9,9 +9,15 @@ {% block actions_content %} {% if source.status.last_job and (source.status.last_job.status == 'New' or source.status.last_job.status == 'Running') %} -
  • Refresh
  • +
  • Reharvest
  • {% else %} -
  • {{ h.nav_named_link(_('Reharvest'), '{0}_refresh'.format(c.dataset_type), id=source.id, class_='btn', icon='refresh')}}
  • + {% set locale = h.dump_json({'content': _('This will re-run the harvesting for this source. Any updates at the source will overwrite the local datasets. Large collections may take a couple of days to finish harvesting. Please confirm you would like us to start reharvesting.')}) %} +
  • + + + {{ _('Reharvest') }} + +
  • {% endif %}
  • {{ h.nav_named_link(_('View harvest source'), '{0}_read'.format(c.dataset_type), id=source.name, class_='btn', icon='eye-open')}}
  • {% endblock %}