From 83dd0b4b688e7ef27a2def294933be134c2c297b Mon Sep 17 00:00:00 2001 From: Stefan Oderbolz Date: Thu, 9 Jul 2015 22:35:54 +0200 Subject: [PATCH] [#138] Add data attributes to support timezone conversion --- .../templates_new/snippets/job_details.html | 18 +++++++++++++++--- .../harvest/templates_new/source/job/list.html | 10 ++++++++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/ckanext/harvest/templates_new/snippets/job_details.html b/ckanext/harvest/templates_new/snippets/job_details.html index f0827ef..27daeff 100644 --- a/ckanext/harvest/templates_new/snippets/job_details.html +++ b/ckanext/harvest/templates_new/snippets/job_details.html @@ -50,15 +50,27 @@ Example: {{ _('Created') }} - {{ h.render_datetime(job.created, with_hours=True) }} + + + {{ h.render_datetime(job.created, with_hours=True) }} + + {{ _('Started') }} - {{ h.render_datetime(job.gather_started, with_hours=True) }} + + + {{ h.render_datetime(job.gather_started, with_hours=True) }} + + {{ _('Finished') }} - {{ h.render_datetime(job.finished, with_hours=True) }} + + + {{ h.render_datetime(job.finished, with_hours=True) }} + + {{ _('Status') }} diff --git a/ckanext/harvest/templates_new/source/job/list.html b/ckanext/harvest/templates_new/source/job/list.html index fe5d874..c147167 100644 --- a/ckanext/harvest/templates_new/source/job/list.html +++ b/ckanext/harvest/templates_new/source/job/list.html @@ -25,9 +25,15 @@ {% endif %}

- {{ _('Started:') }} {{ h.render_datetime(job.gather_started, with_hours=True) or _('Not yet') }} + {{ _('Started:') }} + + {{ h.render_datetime(job.gather_started, with_hours=True) or _('Not yet') }} + — - {{ _('Finished:') }} {{ h.render_datetime(job.finished, with_hours=True) or _('Not yet') }} + {{ _('Finished:') }} + + {{ h.render_datetime(job.finished, with_hours=True) or _('Not yet') }} +

{% if job.status == 'Finished' %}