Skip to content

Commit bbea87b

Browse files
authored
Merge pull request #5191 from neenu-chacko/5150-switch-pagination-order
#5150 - Switch order of page totals and grand totals throughout the app
2 parents 347529e + 91f0ec5 commit bbea87b

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

app/views/distributions/_distribution_total.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<td></td>
66
<td></td>
77
<td class="overall-total-items text-right">
8-
<%= number_with_delimiter(@total_items_all_distributions, :delimiter => ',') %> (Total)
9-
<br>
108
<%= number_with_delimiter(@total_items_paginated_distributions, :delimiter => ',') %> (This page)
9+
<br>
10+
<%= number_with_delimiter(@total_items_all_distributions, :delimiter => ',') %> (Total)
1111
</td>
1212
<td class="overall-total-value text-right">
13-
<strong><%= dollar_value(@total_value_all_distributions) %></strong> (Total)
14-
<br>
1513
<strong><%= dollar_value(@total_value_paginated_distributions) %></strong> (This page)
14+
<br>
15+
<strong><%= dollar_value(@total_value_all_distributions) %></strong> (Total)
1616
</td>
1717
<td>
1818
</td>

app/views/donations/index.html.erb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,25 +124,25 @@
124124
<td></td>
125125
<td></td>
126126
<td class="text-left numeric">
127+
<%= @paginated_donations_quantity %>
128+
<br>
129+
(This page)
130+
<br>
127131
<strong id="donation_quantity">
128132
<%= @donations_quantity %>
129133
<br>
130134
(Total)
131135
</strong>
132-
<br>
133-
<%= @paginated_donations_quantity %>
134-
<br>
135-
(This page)
136136
</td>
137137
<td class="text-left numeric"><strong><%= dollar_value(@total_money_raised) %></strong></td>
138138
<td class="text-left numeric in-kind">
139-
<strong>
140-
<%= dollar_value(@total_value_all_donations) %> (Total)
141-
</strong>
142-
<br>
143139
<%= dollar_value(@paginated_in_kind_value) %>
144140
<br>
145141
(This page)
142+
<br>
143+
<strong>
144+
<%= dollar_value(@total_value_all_donations) %> (Total)
145+
</strong>
146146
</td>
147147
</tr>
148148
</tfoot>

app/views/purchases/index.html.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,26 @@
9595
<tr>
9696
<td colspan="2" style="text-align: left"><strong>Total</strong></td>
9797
<td class="numeric">
98+
<%= @paginated_purchases_quantity %> (This page)
99+
<br>
98100
<strong id="purchase_quantity">
99101
<%= @purchases_quantity %> (Total)
100102
</strong>
101-
<br>
102-
<%= @paginated_purchases_quantity %> (This page)
103103
</td>
104104
<td></td>
105105
<td class="numeric">
106+
<%= dollar_value(@paginated_purchases_value) %> (This page)
107+
<br>
106108
<strong>
107109
<%= dollar_value(@total_value_all_purchases) %> (Total)
108110
</strong>
109-
<br>
110-
<%= dollar_value(@paginated_purchases_value) %> (This page)
111111
</td>
112112
<td class="numeric">
113+
<%= dollar_value(@paginated_fair_market_values) %> (This page)
114+
<br>
113115
<strong>
114116
<%= dollar_value(@total_fair_market_values) %> (Total)
115117
</strong>
116-
<br>
117-
<%= dollar_value(@paginated_fair_market_values) %> (This page)
118118
</td>
119119
<td></td>
120120
</tr>

0 commit comments

Comments
 (0)