From 114c19db1582d84150c97fa07a364f54d044e412 Mon Sep 17 00:00:00 2001 From: Stefanie Taepke Date: Tue, 31 Oct 2023 19:53:51 +0100 Subject: [PATCH] feat: add colors to harvest-stats --- .../switzerland/templates/snippets/job_details.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ckanext/switzerland/templates/snippets/job_details.html b/ckanext/switzerland/templates/snippets/job_details.html index 75f877113..698707622 100644 --- a/ckanext/switzerland/templates/snippets/job_details.html +++ b/ckanext/switzerland/templates/snippets/job_details.html @@ -17,7 +17,7 @@ {% if job.status == 'Finished' %}

- + {% if 'errored' in stats and stats['errored'] > 0 %} {{ stats['errored'] }} {% else %} @@ -26,7 +26,15 @@ {{ _('errors') }} {% for action in ['added', 'updated', 'deleted', 'not modified'] %} - + {% if "deleted" == action %} + + {% elif "added" == action %} + + {% elif "updated" == action %} + + {% else %} + + {% endif %} {% if action in stats and stats[action] > 0 %} {{ stats[action] }} {% else %}