diff --git a/app/views/polls/stats.html.erb b/app/views/polls/stats.html.erb index f77282b85..db9dfd83d 100644 --- a/app/views/polls/stats.html.erb +++ b/app/views/polls/stats.html.erb @@ -8,79 +8,94 @@
| <%= t("polls.show.stats.votes") %> | -<%= t("polls.show.stats.web") %> | -<%= t("polls.show.stats.booth") %> | -<%= t("polls.show.stats.total") %> | -
|---|---|---|---|
| <%= t("polls.show.stats.valid") %> | -- <%= @stats[:total_web_valid] %> - (<%= @stats[:valid_percentage_web].round(2) %>%) - | -- <%= @stats[:total_booth_valid] %> - (<%= @stats[:valid_percentage_booth].round(2) %>%) - | -- <%= @stats[:total_valid_votes] %> - (<%= @stats[:total_valid_percentage].round(2) %>%) - | -
| <%= t("polls.show.stats.white") %> | -- <%= @stats[:total_web_white] %> - (<%= @stats[:white_percentage_web].round(2) %>%) - | -- <%= @stats[:total_booth_white] %> - (<%= @stats[:white_percentage_booth].round(2) %>%) - | -<%= @stats[:total_white_votes] %> - (<%= @stats[:total_white_percentage].round(2) %>%) - | -
| <%= t("polls.show.stats.null_votes") %> | -- <%= @stats[:total_web_null] %> - (<%= @stats[:null_percentage_web].round(2) %>%) - | -- <%= @stats[:total_booth_null] %> - (<%= @stats[:null_percentage_booth].round(2) %>%) - | -- <%= @stats[:total_null_votes] %> - (<%= @stats[:total_null_percentage].round(2) %>%) - | -
| <%= t("polls.show.stats.total") %> | -- <%= @stats[:total_participants_web] %> - (<%= @stats[:total_participants_web_percentage].round(2) %>%) - | -- <%= @stats[:total_participants_booth] %> - (<%= @stats[:total_participants_booth_percentage].round(2) %>%) - | -<%= @stats[:total_participants] %> | -
| <%= t("polls.show.stats.votes") %> | +<%= t("polls.show.stats.web") %> | +<%= t("polls.show.stats.booth") %> | +<%= t("polls.show.stats.total") %> | +
|---|---|---|---|
| <%= t("polls.show.stats.valid") %> | ++ <%= @stats[:total_web_valid] %> + (<%= @stats[:valid_percentage_web].round(2) %>%) + | ++ <%= @stats[:total_booth_valid] %> + (<%= @stats[:valid_percentage_booth].round(2) %>%) + | ++ <%= @stats[:total_valid_votes] %> + (<%= @stats[:total_valid_percentage].round(2) %>%) + | +
| <%= t("polls.show.stats.white") %> | ++ <%= @stats[:total_web_white] %> + (<%= @stats[:white_percentage_web].round(2) %>%) + | ++ <%= @stats[:total_booth_white] %> + (<%= @stats[:white_percentage_booth].round(2) %>%) + | +<%= @stats[:total_white_votes] %> + (<%= @stats[:total_white_percentage].round(2) %>%) + | +
| <%= t("polls.show.stats.null_votes") %> | ++ <%= @stats[:total_web_null] %> + (<%= @stats[:null_percentage_web].round(2) %>%) + | ++ <%= @stats[:total_booth_null] %> + (<%= @stats[:null_percentage_booth].round(2) %>%) + | ++ <%= @stats[:total_null_votes] %> + (<%= @stats[:total_null_percentage].round(2) %>%) + | +
| <%= t("polls.show.stats.total") %> | ++ <%= @stats[:total_participants_web] %> + (<%= @stats[:total_participants_web_percentage].round(2) %>%) + | ++ <%= @stats[:total_participants_booth] %> + (<%= @stats[:total_participants_booth_percentage].round(2) %>%) + | +<%= @stats[:total_participants] %> | +