From fc598fd86fbee6d9d14490128fb637e1130cd37c Mon Sep 17 00:00:00 2001 From: Teemu Erkkola Date: Tue, 20 Aug 2019 12:07:11 +0300 Subject: [PATCH] AV-976: Fix broken links report layout for long words --- .../templates/report/broken_links.html | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/ckanext/archiver/templates/report/broken_links.html b/ckanext/archiver/templates/report/broken_links.html index dfdd4335..b3d0c667 100644 --- a/ckanext/archiver/templates/report/broken_links.html +++ b/ckanext/archiver/templates/report/broken_links.html @@ -34,36 +34,34 @@
  • {% trans %}Broken datasets{% endtrans %}: {{ c.data['num_broken_packages'] }} / {{ c.data['num_packages'] }} ({{ c.data.get('broken_package_percent') }}%)
  • {% trans %}Broken links{% endtrans %}: {{ c.data['num_broken_resources'] }} / {{ c.data['num_resources'] }} ({{ c.data.get('broken_resource_percent') }}%)
  • - +
    - - + {% if c.options['include_sub_organizations'] %} - + {% endif %} - - - - - - - - + + + + + + + + {% for row_dict in c.data['table'] %} - {% if c.options['include_sub_organizations'] %} {% endif %} - +
    {% trans %}Dataset{% endtrans %}{% trans %}Notes{% endtrans %}{% trans %}Dataset{% endtrans %}{% trans %}Organization{% endtrans %}{% trans %}Organization{% endtrans %}{% trans %}Res{% endtrans %}{% trans %}URL{% endtrans %}{% trans %}Status{% endtrans %}{% trans %}Reason{% endtrans %}{% trans %}No. of fails{% endtrans %}{% trans %}First fail{% endtrans %}{% trans %}Latest fail{% endtrans %}{% trans %}Last success{% endtrans %}{% trans %}Res{% endtrans %}{% trans %}URL{% endtrans %}{% trans %}Status{% endtrans %}{% trans %}Reason{% endtrans %}{% trans %}No. of fails{% endtrans %}{% trans %}First fail{% endtrans %}{% trans %}Latest fail{% endtrans %}{% trans %}Last success{% endtrans %}
    {{ row_dict['dataset_title'] }}{{ row_dict['dataset_notes'] }}{{ row_dict['organization_title'] }}{{ row_dict['resource_position'] }} {{ row_dict['resource_url'] }} {{ row_dict.get('status', 'not recorded') }}{{ row_dict.get('reason', 'not recorded') }}{{ row_dict.get('reason', 'not recorded') }} {{ row_dict.get('failure_count', 'not recorded') }} {{ h.render_datetime(row_dict.get('first_failure')) if row_dict.get('first_failure') else 'not recorded' }} {{ h.render_datetime(row_dict.get('last_updated')) if row_dict.get('last_updated') else 'not recorded' }}