Browse Source

Show total count at top

pull/438/head
baarkerlounger 3 years ago
parent
commit
7e508bca1a
  1. 2
      app/views/case_logs/_log_list.html.erb
  2. 2
      app/views/case_logs/index.html.erb

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

@ -1,6 +1,6 @@
<figure class="app-figure"> <figure class="app-figure">
<figcaption id="<%= title.dasherize %>" class="app-figure__caption"> <figcaption id="<%= title.dasherize %>" class="app-figure__caption">
<strong><%= case_logs.size %></strong> <%= title.downcase %> <strong><%= pagy.count %></strong> total <%= title.downcase %>
</figcaption> </figcaption>
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> <section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<table class="govuk-table"> <table class="govuk-table">

2
app/views/case_logs/index.html.erb

@ -10,6 +10,6 @@
</div> </div>
<% if @case_logs.present? %> <% if @case_logs.present? %>
<%= render partial: "log_list", locals: { case_logs: @case_logs, title: "Logs" } %> <%= render partial: "log_list", locals: { case_logs: @case_logs, title: "Logs", pagy: @pagy } %>
<%== render partial: 'pagy/nav', locals: { pagy: @pagy } %> <%== render partial: 'pagy/nav', locals: { pagy: @pagy } %>
<% end %> <% end %>

Loading…
Cancel
Save