diff --git a/ckanext/harvest/templates_new/snippets/source_item.html b/ckanext/harvest/templates_new/snippets/source_item.html index 200d90f..18f7b6e 100644 --- a/ckanext/harvest/templates_new/snippets/source_item.html +++ b/ckanext/harvest/templates_new/snippets/source_item.html @@ -38,7 +38,9 @@ Example: {% endif %}
- {{ _('Datasets') }}: {{ source.status.total_datasets }}
+ {% if source.status %}
+ {{ _('Datasets') }}: {{ source.status.total_datasets }}
+ {% endif %}
{% if not within_organization and source.organization %}
— {{ _('Organization') }}: {{ h.link_to(source.organization.title or source.organization.name, h.url_for('organization_read', id=source.organization.name)) }}
{% endif %}
diff --git a/ckanext/harvest/templates_new/source/admin.html b/ckanext/harvest/templates_new/source/admin.html
index 95a6cbc..a2ee908 100644
--- a/ckanext/harvest/templates_new/source/admin.html
+++ b/ckanext/harvest/templates_new/source/admin.html
@@ -3,7 +3,7 @@
{% block primary_content_inner %}
Last Harvest Job
- {% if source.status.last_job %}
+ {% if source.status and source.status.last_job %}
{% snippet "snippets/job_details.html", job=source.status.last_job %}
-