From 7e508bca1a42cb13d2fd3a62ca2a3b53ae94f096 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 31 Mar 2022 10:07:18 +0100 Subject: [PATCH] Show total count at top --- app/views/case_logs/_log_list.html.erb | 2 +- app/views/case_logs/index.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb index 55b66fc81..3029e5e9c 100644 --- a/app/views/case_logs/_log_list.html.erb +++ b/app/views/case_logs/_log_list.html.erb @@ -1,6 +1,6 @@
- <%= case_logs.size %> <%= title.downcase %> + <%= pagy.count %> total <%= title.downcase %>
diff --git a/app/views/case_logs/index.html.erb b/app/views/case_logs/index.html.erb index 89cafabf5..beb75f0bb 100644 --- a/app/views/case_logs/index.html.erb +++ b/app/views/case_logs/index.html.erb @@ -10,6 +10,6 @@ <% if @case_logs.present? %> - <%= render partial: "log_list", locals: { case_logs: @case_logs, title: "Logs" } %> - <%== render partial: 'pagy/nav', locals: {pagy: @pagy} %> + <%= render partial: "log_list", locals: { case_logs: @case_logs, title: "Logs", pagy: @pagy } %> + <%== render partial: 'pagy/nav', locals: { pagy: @pagy } %> <% end %>