diff --git a/ckanext/harvest/fanstatic_library/styles/harvest.css b/ckanext/harvest/fanstatic_library/styles/harvest.css index c0bb9cb..0e582a4 100644 --- a/ckanext/harvest/fanstatic_library/styles/harvest.css +++ b/ckanext/harvest/fanstatic_library/styles/harvest.css @@ -22,15 +22,6 @@ header.with-filter h1 { line-height: 1.3; color: #000; } -.harvest-jobs a .errors { - float: right; - font-size: 16px; - line-height: 1.3; - margin-top: 5px; - -webkit-border-radius: 100px; - -moz-border-radius: 100px; - border-radius: 100px; -} .harvest-jobs a p { clear: both; overflow: hidden; @@ -54,9 +45,32 @@ header.with-filter h1 { .harvest-jobs a:last-child { border-bottom-width: 0; } +.harvest-errors { + float: right; +} +.harvest-errors .badge { + float: left; + font-size: 16px; + line-height: 1.3; + margin-top: 5px; +} +.harvest-errors .badge:first-child { + padding-right: 8px; + -webkit-border-radius: 100px 0 0 100px; + -moz-border-radius: 100px 0 0 100px; + border-radius: 100px 0 0 100px; +} +.harvest-errors .badge:last-child { + font-weight: normal; + padding-left: 8px; + -webkit-border-radius: 0 100px 100px 0; + -moz-border-radius: 0 100px 100px 0; + border-radius: 0 100px 100px 0; +} .harvest-diff span { + display: inline-block; color: #000; - padding: 5px 10px; + padding: 2px 10px; margin-right: 5px; font-size: 12px; -webkit-border-radius: 5px; diff --git a/ckanext/harvest/fanstatic_library/styles/harvest.less b/ckanext/harvest/fanstatic_library/styles/harvest.less index 7fbdc33..f10c0db 100644 --- a/ckanext/harvest/fanstatic_library/styles/harvest.less +++ b/ckanext/harvest/fanstatic_library/styles/harvest.less @@ -22,13 +22,6 @@ header.with-filter { line-height: 1.3; color: #000; } - .errors { - float: right; - font-size: 16px; - line-height: 1.3; - margin-top: 5px; - .border-radius(100px); - } p { clear: both; overflow: hidden; @@ -57,10 +50,31 @@ header.with-filter { } } +.harvest-errors { + .clearfix(); + float: right; + .badge { + float: left; + font-size: 16px; + line-height: 1.3; + margin-top: 5px; + &:first-child { + padding-right: 8px; + .border-radius(100px 0 0 100px); + } + &:last-child { + font-weight: normal; + padding-left: 8px; + .border-radius(0 100px 100px 0); + } + } +} + .harvest-diff { span { + display: inline-block; color: #000; - padding: 5px 10px; + padding: 2px 10px; margin-right: 5px; font-size: 12px; .border-radius(5px); diff --git a/ckanext/harvest/templates_new/snippets/job_details.html b/ckanext/harvest/templates_new/snippets/job_details.html index 6d542ba..5294b02 100644 --- a/ckanext/harvest/templates_new/snippets/job_details.html +++ b/ckanext/harvest/templates_new/snippets/job_details.html @@ -17,12 +17,13 @@ Example: {% set stats = job.stats %} -
+
{% if 'errored' in stats and stats['errored'] > 0 %} - {{ stats['errored'] }} {{ _('errors') }} + {{ stats['errored'] }} {% else %} - 0 {{ _('errors') }} + 0 {% endif %} + {{ _('errors') }}
@@ -57,30 +58,3 @@ Example:
{{ _('No errors for this job') }}
-{% else %} -{{ _('Only the 20 most frequent errors are shown') }}
-{{ _('Count') }} | -{{ _('Message') }} | -
---|---|
{{ error[1] }} | -{{ error[0] }} | -
diff --git a/ckanext/harvest/templates_new/source/job/read.html b/ckanext/harvest/templates_new/source/job/read.html index a534a6a..19ce1f5 100644 --- a/ckanext/harvest/templates_new/source/job/read.html +++ b/ckanext/harvest/templates_new/source/job/read.html @@ -12,6 +12,33 @@
{{ _('No errors for this job') }}
+ {% else %} +{{ _('Only the 20 most frequent errors are shown') }}
+{{ _('Count') }} | +{{ _('Message') }} | +
---|---|
{{ error[1] }} | +{{ error[0] }} | +
{{ c.job_report.keys()|length}} documents with errors
diff --git a/ckanext/harvest/templates_new/source/read_base.html b/ckanext/harvest/templates_new/source/read_base.html index ac8d6b2..bf5c4fe 100644 --- a/ckanext/harvest/templates_new/source/read_base.html +++ b/ckanext/harvest/templates_new/source/read_base.html @@ -33,8 +33,8 @@