From afb105999e4b6a49ea1f54bcb122c4278c9648ff Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 13 Aug 2013 23:45:09 +0200 Subject: [PATCH] [#1183] Clean up template code --- ckan/templates/snippets/datapusher_status.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ckan/templates/snippets/datapusher_status.html b/ckan/templates/snippets/datapusher_status.html index bb95b08d809..d5ac0108520 100644 --- a/ckan/templates/snippets/datapusher_status.html +++ b/ckan/templates/snippets/datapusher_status.html @@ -7,13 +7,11 @@ {% set datapusher_enabled = h.get_action('datapusher_enabled') %} {% if datapusher_enabled %} {% set job = h.get_action('datapusher_status', data_dict={'resource_id': resource.id}) %} - {% set status = job.status %} - {% set datapusher_job_url = job.job_url %} - {% set title = _('Datapusher status: {status}').format(status=status) %} - {% if status == 'unknown' %} - + {% set title = _('Datapusher status: {status}.').format(status=job.status) %} + {% if job.status == 'unknown' %} + {% else %} - + {% endif %} {% endif %} {% endif %}