%= back_link_to %>
<%= t("admin.stats.polls.web_participants") %>
<%= @participants.web.select(:user_id).distinct.count %>
<%= t("admin.stats.polls.total_participants") %>
<%= @participants.select(:user_id).distinct.count %>
| <%= t("admin.stats.polls.table.poll_name") %> | <%= t("admin.stats.polls.total_participants") %> | <%= t("admin.stats.polls.table.origin_web") %> |
|---|---|---|
| <%= poll.name %> | <%= poll.voters.select(:user_id).distinct.count %> | <%= poll.voters.web.select(:user_id).distinct.count %> |
| <%= t("admin.stats.polls.table.question_name") %> | <%= t("admin.stats.polls.table.origin_web") %> |
|---|---|
| <%= question.title %> | <%= ::Poll::Answer.by_question(question).count %> |
| <%= t("admin.stats.polls.table.origin_total") %>: <%= ::Poll::Answer.where(question: poll.questions) .select(:author_id).distinct.count %> |