<% 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" %>
Log Tenant Property Tenancy starts Log created CompletedOwning organisation Managing organisation
<%= govuk_link_to case_log_path(log) do %> Log <%= log.id %> <% end %> <%= 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 %>