From 65907adcfae6fbc1d7bac0982ff91ec10d648e35 Mon Sep 17 00:00:00 2001 From: kiddhustle Date: Tue, 26 Apr 2022 10:24:53 +0100 Subject: [PATCH] cldc-1174, cldc-1184: fix table semantics and markup --- app/views/case_logs/_log_list.html.erb | 110 ++++++++++++------------- 1 file changed, 53 insertions(+), 57 deletions(-) diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb index 9aa52de14..277997ac6 100644 --- a/app/views/case_logs/_log_list.html.erb +++ b/app/views/case_logs/_log_list.html.erb @@ -1,61 +1,57 @@ -
-
+ + + + + + + + + + + <% if current_user.support? %> + + + <% end %> + + + + <% case_logs.map do |log| %> + + + + + + + + <% if current_user.support? %> + + + <% end %> + + <% end %> + +
<%= pagy.count %> total <%= title.downcase %> <%= govuk_link_to "Download (CSV)", "/logs.csv", type: "text/csv" %> - -
- - - - - - - - - - <% if current_user.support? %> - - - <% end %> - - - - <% case_logs.map do |log| %> - - - - - - - - <% if current_user.support? %> - - - <% end %> - - <% end %> - -
LogTenantPropertyTenancy startsLog createdCompletedOwning organisationManaging organisation
- <%= govuk_link_to log.id, case_log_path(log) %> - - <%= log.tenant_code? ? log.tenant_code : "–" %> - - <%= log.propcode? ? log.propcode : "–" %> - - <%= log.startdate.present? ? log.startdate.to_formatted_s(:govuk_date) : "–" %> - - <%= log.created_at.to_formatted_s(:govuk_date) %> - - <%= govuk_tag( - colour: log.status == "completed" ? "blue" : "grey", - text: log.status.humanize, - ) %> - - <%= log.owning_organisation.name %> - - <%= log.managing_organisation.name %> -
-
- +
LogTenantPropertyTenancy startsLog createdCompletedOwning organisationManaging organisation
+ <%= govuk_link_to log.id, case_log_path(log) %> + + <%= log.tenant_code? ? log.tenant_code : "–" %> + + <%= log.propcode? ? log.propcode : "–" %> + + <%= log.startdate.present? ? log.startdate.to_formatted_s(:govuk_date) : "–" %> + + <%= log.created_at.to_formatted_s(:govuk_date) %> + + <%= govuk_tag( + colour: log.status == "completed" ? "blue" : "grey", + text: log.status.humanize, + ) %> + + <%= log.owning_organisation.name %> + + <%= log.managing_organisation.name %> +