From 14cb81270cb43e45b2f6b329cacd1f3b5ee5a6d7 Mon Sep 17 00:00:00 2001 From: Chris Arridge Date: Mon, 20 Jan 2025 14:31:14 +0000 Subject: [PATCH] fix templates: fix table width issue in download errors and validation The URL column in the Download Errors page has some very long URLs and as a result the table overflows its container. This fix sets the column width to a maximum and clips any overflowing content. This fix has also been pre-emptively applied to the validation page. --- iati_dashboard/templates/download.html | 4 ++-- iati_dashboard/templates/validation.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iati_dashboard/templates/download.html b/iati_dashboard/templates/download.html index c4d8bebd7..ba2b6efe7 100644 --- a/iati_dashboard/templates/download.html +++ b/iati_dashboard/templates/download.html @@ -22,7 +22,7 @@

List of files that fail t Publisher Registry Dataset - URL + URL Error Code @@ -31,7 +31,7 @@

List of files that fail t {{ publisher }} {{ dataset }} - {{ err_url|url_to_filename }} + {{ err_url|url_to_filename }} {{ code }} {% endfor %} diff --git a/iati_dashboard/templates/validation.html b/iati_dashboard/templates/validation.html index 638b9e675..ff54213c6 100644 --- a/iati_dashboard/templates/validation.html +++ b/iati_dashboard/templates/validation.html @@ -27,7 +27,7 @@

Dataset - URL + URL Validator report @@ -36,7 +36,7 @@

{{ dataset_name }} - + {% if publisher in ckan and dataset_name in ckan[publisher] %} {{ ckan[publisher][dataset_name].resource.url|url_to_filename }} {% endif %}