From 00e8373a1d7fe3ce36dfaca20fe24a82bc01d820 Mon Sep 17 00:00:00 2001 From: Neenu Chacko <45137335+neenu-chacko@users.noreply.github.com> Date: Sun, 11 May 2025 13:31:23 +0530 Subject: [PATCH] Updated paginate order --- .../distributions/_distribution_total.html.erb | 8 ++++---- app/views/donations/index.html.erb | 16 ++++++++-------- app/views/purchases/index.html.erb | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/views/distributions/_distribution_total.html.erb b/app/views/distributions/_distribution_total.html.erb index 669c4251ca..4384583104 100644 --- a/app/views/distributions/_distribution_total.html.erb +++ b/app/views/distributions/_distribution_total.html.erb @@ -5,14 +5,14 @@ - <%= number_with_delimiter(@total_items_all_distributions, :delimiter => ',') %> (Total) -
<%= number_with_delimiter(@total_items_paginated_distributions, :delimiter => ',') %> (This page) +
+ <%= number_with_delimiter(@total_items_all_distributions, :delimiter => ',') %> (Total) - <%= dollar_value(@total_value_all_distributions) %> (Total) -
<%= dollar_value(@total_value_paginated_distributions) %> (This page) +
+ <%= dollar_value(@total_value_all_distributions) %> (Total) diff --git a/app/views/donations/index.html.erb b/app/views/donations/index.html.erb index f8c34de309..c9fc55ee69 100644 --- a/app/views/donations/index.html.erb +++ b/app/views/donations/index.html.erb @@ -124,25 +124,25 @@ + <%= @paginated_donations_quantity %> +
+ (This page) +
<%= @donations_quantity %>
(Total)
-
- <%= @paginated_donations_quantity %> -
- (This page) <%= dollar_value(@total_money_raised) %> - - <%= dollar_value(@total_value_all_donations) %> (Total) - -
<%= dollar_value(@paginated_in_kind_value) %>
(This page) +
+ + <%= dollar_value(@total_value_all_donations) %> (Total) + diff --git a/app/views/purchases/index.html.erb b/app/views/purchases/index.html.erb index bfc02a9af7..e74b8277ff 100644 --- a/app/views/purchases/index.html.erb +++ b/app/views/purchases/index.html.erb @@ -95,26 +95,26 @@ Total + <%= @paginated_purchases_quantity %> (This page) +
<%= @purchases_quantity %> (Total) -
- <%= @paginated_purchases_quantity %> (This page) + <%= dollar_value(@paginated_purchases_value) %> (This page) +
<%= dollar_value(@total_value_all_purchases) %> (Total) -
- <%= dollar_value(@paginated_purchases_value) %> (This page) + <%= dollar_value(@paginated_fair_market_values) %> (This page) +
<%= dollar_value(@total_fair_market_values) %> (Total) -
- <%= dollar_value(@paginated_fair_market_values) %> (This page)