From 712e150b52d1a1bbae74e5e02d6e4c9e6ec90ead Mon Sep 17 00:00:00 2001 From: John Martin Date: Thu, 15 Aug 2013 18:43:46 +0100 Subject: [PATCH] [#58] Fix to make merge nice --- ckanext/harvest/templates_new/source/admin_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/harvest/templates_new/source/admin_base.html b/ckanext/harvest/templates_new/source/admin_base.html index 6bf1a4e..9c280d9 100644 --- a/ckanext/harvest/templates_new/source/admin_base.html +++ b/ckanext/harvest/templates_new/source/admin_base.html @@ -9,7 +9,7 @@ {% block action_links %} {% set show_li = c.__version == '2.0' %} - {% if source.status.last_job and (source.status.last_job.status == 'New' or source.status.last_job.status == 'Running') %} + {% if source.status and source.status.last_job and (source.status.last_job.status == 'New' or source.status.last_job.status == 'Running') %} {{ '
  • ' if show_li }} Reharvest{{ '
  • ' if show_li }} {% else %} {% 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. Sources with a large number of datasets may take a significant amount of time to finish harvesting. Please confirm you would like us to start reharvesting.')}) %}