{# Displays information for a particular harvest job, including: * counts for added, updated, deleted or errored datasets * table with general details * table with a summary of the most common errors on this job job - dictized harvest job object Example: {% snippet 'snippets/job_details.html', job=job %} #} {% set stats = job.stats %} {% if job.status == 'Finished' %}

{% if 'errored' in stats and stats['errored'] > 0 %} {{ stats['errored'] }} {% else %} 0 {% endif %} {{ _('errors') }} {% for action in ['added', 'updated', 'deleted'] %} {% if action in stats and stats[action] > 0 %} {{ stats[action] }} {% else %} 0 {% endif %} {{ _(action) }} {% endfor %}

{% endif %}

{{ _('Details') }}

{{ _('Id') }} {{ job.id }}
{{ _('Created') }} {{ h.render_datetime(job.created, with_hours=True) }}
{{ _('Started') }} {{ h.render_datetime(job.gather_started, with_hours=True) }}
{{ _('Finished') }} {{ h.render_datetime(job.finished, with_hours=True) }}
{{ _('Status') }} {{ _(job.status) }}