Remove system count column for old polls
System count isn't a relevant number because the important one is the number of votes counted by poll officers. We're still maintaining it for a month in case poll officers would like to review the results.
This commit is contained in:
@@ -17,7 +17,10 @@
|
||||
<% unless @poll.budget_poll? %>
|
||||
<th class="text-center"><%= t("admin.recounts.index.total_final") %></th>
|
||||
<% end %>
|
||||
<th class="text-center"><%= t("admin.recounts.index.total_system") %></th>
|
||||
|
||||
<% unless @poll.recounts_confirmed? %>
|
||||
<th class="text-center"><%= t("admin.recounts.index.total_system") %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -26,7 +29,10 @@
|
||||
<% unless @poll.budget_poll? %>
|
||||
<td class="text-center" id="total_final"><%= @stats.total_participants_booth %></td>
|
||||
<% end %>
|
||||
<td class="text-center" id="total_system"><%= @stats.total_registered_booth %></td>
|
||||
|
||||
<% unless @poll.recounts_confirmed? %>
|
||||
<td class="text-center" id="total_system"><%= @stats.total_registered_booth %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -37,7 +43,10 @@
|
||||
<% unless @poll.budget_poll? %>
|
||||
<th class="text-center"><%= t("admin.recounts.index.table_total_recount") %></th>
|
||||
<% end %>
|
||||
<th class="text-center"><%= t("admin.recounts.index.table_system_count") %></th>
|
||||
|
||||
<% unless @poll.recounts_confirmed? %>
|
||||
<th class="text-center"><%= t("admin.recounts.index.table_system_count") %></th>
|
||||
<% end %>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @booth_assignments.each do |booth_assignment| %>
|
||||
@@ -50,7 +59,7 @@
|
||||
</strong>
|
||||
</td>
|
||||
<% unless @poll.budget_poll? %>
|
||||
<td class="text-center <%= "count-error" if total_recounts.to_i != system_count %>" id="<%= dom_id(booth_assignment) %>_recount">
|
||||
<td class="text-center" id="<%= dom_id(booth_assignment) %>_recount">
|
||||
<% if total_recounts.present? %>
|
||||
<strong><%= total_recounts %></strong>
|
||||
<% else %>
|
||||
@@ -58,13 +67,16 @@
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
<td class="text-center" id="<%= dom_id(booth_assignment) %>_system">
|
||||
<% if system_count.present? %>
|
||||
<strong><%= system_count %></strong>
|
||||
<% else %>
|
||||
<span>0</span>
|
||||
<% end %>
|
||||
</td>
|
||||
|
||||
<% unless @poll.recounts_confirmed? %>
|
||||
<td class="text-center" id="<%= dom_id(booth_assignment) %>_system">
|
||||
<% if system_count.present? %>
|
||||
<strong><%= system_count %></strong>
|
||||
<% else %>
|
||||
<span>0</span>
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user