From 56945565ba8aa4fc32f8e3b1f121ef2cc83eec25 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 20 Jul 2017 09:31:04 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20indent=20column=20headings=20if?= =?UTF-8?q?=20no=20row=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The reason to indent the first column heading is so that the number 1 lines up with the numbers of subsequent rows. This only happens when the subsequent rows are indented because of the red bars. This is only when there are row errors, not when there are more general errors. --- app/templates/views/check/column-errors.html | 2 +- app/templates/views/check/ok.html | 2 +- app/templates/views/check/row-errors.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/views/check/column-errors.html b/app/templates/views/check/column-errors.html index 032b4dd8c..0dc1dffa4 100644 --- a/app/templates/views/check/column-errors.html +++ b/app/templates/views/check/column-errors.html @@ -107,7 +107,7 @@ caption=original_file_name, caption_visible=False, field_headings=[ - 'Row in file'.format("table-field-invisible-error" if errors else "")|safe + 'Row in file'|safe ] + recipients.column_headers ) %} {% call index_field() %} diff --git a/app/templates/views/check/ok.html b/app/templates/views/check/ok.html index c09b73756..affa5a4ff 100644 --- a/app/templates/views/check/ok.html +++ b/app/templates/views/check/ok.html @@ -54,7 +54,7 @@ caption=original_file_name, caption_visible=False, field_headings=[ - 'Row in file'.format("table-field-invisible-error" if errors else "")|safe + 'Row in file'|safe ] + recipients.column_headers ) %} {% call index_field() %} diff --git a/app/templates/views/check/row-errors.html b/app/templates/views/check/row-errors.html index 8071e7804..3fdf0171d 100644 --- a/app/templates/views/check/row-errors.html +++ b/app/templates/views/check/row-errors.html @@ -62,7 +62,7 @@ caption=original_file_name, caption_visible=False, field_headings=[ - 'Row in file'.format("table-field-invisible-error" if errors else "")|safe + 'Row in file'|safe ] + recipients.column_headers ) %} {% call index_field() %}