Browse Source

refactor

pull/1230/head
Kat 4 years ago
parent
commit
226301607f
  1. 2
      app/views/logs/_log_list.html.erb

2
app/views/logs/_log_list.html.erb

@ -1,6 +1,6 @@
<h2 class="govuk-body">
<%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "logs", path: request.path)) %>
<% if logs&.first&.form&.type == "lettings" %>
<% if logs&.first&.lettings? %>
<%= govuk_link_to "Download (CSV)", csv_download_url, type: "text/csv" %>
<% end %>
</h2>

Loading…
Cancel
Save