diff --git a/views/style.erb b/views/style.erb
index adc3ffc..2da46db 100644
--- a/views/style.erb
+++ b/views/style.erb
@@ -27,3 +27,7 @@ table:has(.mj-cell:hover) .mj-cell {
border-right-width: 2px;
border-color: var(--bs-body-color);
}
+
+table:has(.mj-cell:hover) .mj-cell-majority {
+ background-color: white !important;
+}
diff --git a/views/votes_show_closed.erb b/views/votes_show_closed.erb
index 85705e5..3559a14 100644
--- a/views/votes_show_closed.erb
+++ b/views/votes_show_closed.erb
@@ -86,6 +86,7 @@
<%= _("Votes for the winning candidate") %>
<% n = 0 %>
+ <% previous = 0 %>
<% c.mj.break_tie(@results.first.mj).each do |a, b| %>
<% if n == 0 %>
@@ -94,15 +95,24 @@
<% end %>
<% if n == 1 %>
+ <% value = settings.values.select { |e| e[:id] == previous }.first %>
-
<%= _("Removing 1 vote.") %>
+
+ <%= _("Removing a vote of value: ") %>
+ <%= _(value[:label]) %>
+
<% end %>
<% if n > 1 %>
+ <% value = settings.values.select { |e| e[:id] == previous }.first %>
-
<%= _("Removing %{n} votes.") % { n: n } %>
+
+ <%= _("Removing another vote of value: ") %>
+ <%= _(value[:label]) %>
+
<% end %>
+ <% previous = a.mj %>
<% (1..a.n).each do |i| %>
@@ -114,9 +124,11 @@
<% end %>
+ <% i = 0 %>
<% settings.values.reverse.each do |v| %>
<% (1..a.count[v[:id]]).each do |r| %>
- | |
+ <% i = i + 1 %>
+ |
<% end %>
<% end %>
@@ -124,9 +136,11 @@
<% if a.mj > b.mj %>><% end %>
<% if a.mj == b.mj %>=<% end %>
|
+ <% i = 0 %>
<% settings.values.each do |v| %>
<% (1..b.count[v[:id]]).each do |r| %>
- |
+ <% i = i + 1 %>
+ |
<% end %>
<% end %>