<%= t ".title" %>
<%= t "decidim.admin.consultations.results.total_votes", count: current_consultation.total_votes %>
/
<%= t "decidim.admin.consultations.results.total_delegates", count: @total_delegates %>
/
<%= t "decidim.admin.consultations.results.participants", count: current_consultation.total_participants %>
<% if allowed_to?(:export_consultation_results, :consultation, consultation: current_consultation) %>
<%= link_to t("decidim.admin.consultations.results.export"), decidim_admin_action_delegator.consultation_exports_path(current_consultation), method: :post, class: "button tiny button--title" %>
<% else %>
<%= t("decidim.admin.consultations.results.export") %>
<% end %>
<% @questions.each do |question| %>
<% unless question.external_voting %>
<%= strip_tags translated_attribute question.title %> |
<%= I18n.t("decidim.admin.consultations.results.membership_type") %> |
<%= I18n.t("decidim.admin.consultations.results.membership_weight") %> |
<%= t "decidim.admin.consultations.results.total_votes", count: question.total_votes %>
/
<%= t "decidim.admin.consultations.results.total_delegates", count: question.total_delegates %>
/
<%= t "decidim.admin.consultations.results.participants", count: question.total_participants %>
|
<% if question.publishable_results? %>
<% @responses.fetch(question.id, []).each do |row| %>
<%= strip_tags translated_attribute row.title %> |
<%= row.membership_type %> |
<%= row.membership_weight %> |
<%= row.votes_count %> |
<% end %>
<% else %>
<%= t "decidim.admin.consultations.results.not_visible" %> |
|
|
|
<% end %>
<% end %>
<% end %>