<%= t("stats.advanced") %>
<%= t("stats.polls.by_channel") %>
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= number_with_info_tags(
@stats[:"total_participants_#{channel}"],
t("stats.polls.#{channel}_percentage",
percentage: number_to_stats_percentage(@stats[:"total_participants_#{channel}_percentage"])
),
html_class: channel
) %>
<% end %>
<%= t("stats.polls.by_gender_and_channel") %>
|
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= t("stats.polls.#{channel}") %> |
<% end %>
<% %i[male female].each do |gender| %>
| <%= t("stats.#{gender}") %> |
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= "#{@stats[:"total_#{gender}_#{channel}"]}
(#{number_to_stats_percentage(@stats[:"#{gender}_#{channel}_percentage"])})" %>
|
<% end %>
<% end %>
<%= t("stats.polls.vote_by_channel") %>
| <%= t("polls.show.stats.votes") %> |
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= t("polls.show.stats.#{channel}") %> |
<% end %>
<%= t("polls.show.stats.total") %> |
| <%= t("polls.show.stats.valid") %> |
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= @stats[:"total_#{channel}_valid"] %>
(<%= @stats[:"valid_percentage_#{channel}"].round(2) %>%)
|
<% end %>
<%= @stats[:total_valid_votes] %>
(<%= @stats[:total_valid_percentage].round(2) %>%)
|
| <%= t("polls.show.stats.white") %> |
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= @stats[:"total_#{channel}_white"] %>
(<%= @stats[:"white_percentage_#{channel}"].round(2) %>%)
|
<% end %>
<%= @stats[:total_white_votes] %>
(<%= @stats[:total_white_percentage].round(2) %>%)
|
| <%= t("polls.show.stats.null_votes") %> |
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= @stats[:"total_#{channel}_null"] %>
(<%= @stats[:"null_percentage_#{channel}"].round(2) %>%)
|
<% end %>
<%= @stats[:total_null_votes] %>
(<%= @stats[:total_null_percentage].round(2) %>%)
|
| <%= t("polls.show.stats.total") %> |
<% Poll::Stats::CHANNELS.each do |channel| %>
<%= @stats[:"total_participants_#{channel}"] %>
(<%= @stats[:"total_participants_#{channel}_percentage"].round(2) %>%)
|
<% end %>
<%= @stats[:total_participants] %> |