Browse Source

Link text

pull/440/head
baarkerlounger 3 years ago
parent
commit
d061ae38f9
  1. 5
      app/views/case_logs/_log_list.html.erb
  2. 4
      spec/requests/case_logs_controller_spec.rb

5
app/views/case_logs/_log_list.html.erb

@ -1,6 +1,9 @@
<figure class="app-figure">
<figcaption id="<%= title.dasherize %>" class="app-figure__caption">
<strong><%= pagy.count %></strong> total <%= title.downcase %>
<span class="govuk-!-margin-right-4">
<strong><%= pagy.count %></strong> total <%= title.downcase %>
</span>
<a class="govuk-link" href="#" download="">Download (CSV)</a>
</figcaption>
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<table class="govuk-table">

4
spec/requests/case_logs_controller_spec.rb

@ -207,6 +207,10 @@ RSpec.describe CaseLogsController, type: :request do
end
end
it "shows the download csv link" do
expect(page).to have_link("Download (CSV)")
end
context "when there are more than 20 logs" do
before do
FactoryBot.create_list(:case_log, 25, owning_organisation: organisation, managing_organisation: organisation)

Loading…
Cancel
Save