<%= t("stats.advanced") %>
<%= t("stats.polls.by_channel") %>
<% stats.channels.each do |channel| %>
<%= number_with_info_tags(
stats.send("total_participants_#{channel}"),
t(
"stats.polls.#{channel}_percentage",
percentage: number_to_stats_percentage(stats.send(:"total_participants_#{channel}_percentage"))
),
html_class: channel
) %>
<% end %>
<%= t("stats.polls.vote_by_channel") %>
| <%= t("polls.show.stats.votes") %> |
<% stats.channels.each do |channel| %>
<%= t("polls.show.stats.#{channel}") %> |
<% end %>
<%= t("polls.show.stats.total") %> |
| <%= t("polls.show.stats.valid") %> |
<% stats.channels.each do |channel| %>
<%= stats.send(:"total_#{channel}_valid") %>
(<%= stats.send(:"valid_percentage_#{channel}").round(2) %>%)
|
<% end %>
<%= stats.total_valid_votes %>
(<%= stats.total_valid_percentage.round(2) %>%)
|
| <%= t("polls.show.stats.white") %> |
<% stats.channels.each do |channel| %>
<%= stats.send(:"total_#{channel}_white") %>
(<%= stats.send(:"white_percentage_#{channel}").round(2) %>%)
|
<% end %>
<%= stats.total_white_votes %>
(<%= stats.total_white_percentage.round(2) %>%)
|
| <%= t("polls.show.stats.null_votes") %> |
<% stats.channels.each do |channel| %>
<%= stats.send(:"total_#{channel}_null") %>
(<%= stats.send(:"null_percentage_#{channel}").round(2) %>%)
|
<% end %>
<%= stats.total_null_votes %>
(<%= stats.total_null_percentage.round(2) %>%)
|
| <%= t("polls.show.stats.total") %> |
<% stats.channels.each do |channel| %>
<%= stats.send(:"total_participants_#{channel}") %>
(<%= stats.send(:"total_participants_#{channel}_percentage").round(2) %>%)
|
<% end %>
<%= stats.total_participants %> |