Sha256: f8971a076d0ade2c7d9222ff613ecb348a9234c8b5a8247b3ed55110eb874440

Contents?: true

Size: 1.63 KB

Versions: 51

Compression:

Stored size: 1.63 KB

Contents

<div class="card" id="consultations">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t "decidim.admin.titles.results" %>
      <span class="label button--title">
        <%= t "decidim.admin.consultations.results.total_votes", count: current_consultation.total_votes %>
        /
        <%= t "decidim.admin.consultations.results.participants", count: current_consultation.total_participants %>
        </span>
    </h2>
  </div>
  <div class="card-section">
    <table class="table-list">
      <% current_consultation.questions.published.includes(:responses).each do |question| %>
        <% unless question.external_voting %>
          <thead>
            <tr>
              <th><%= strip_tags translated_attribute question.title %></th>
              <th class="table-list__actions">
                <%= t "decidim.admin.consultations.results.total_votes", count: question.total_votes %>
                /
                <%= t "decidim.admin.consultations.results.participants", count: question.total_participants %>
              </th>
            </tr>
          </thead>
          <tbody>
            <% if question.publishable_results? %>
              <% question.sorted_results.each do |response| %>
              <tr>
                <td><%= strip_tags translated_attribute response.title %></td>
                <td><%= response.votes_count %></td>
              </tr>
              <% end %>
            <% else %>
              <tr><td><em><%= t "decidim.admin.consultations.results.not_visible" %></em></td><td>&nbsp;</td></tr>
            <% end %>
          </tbody>
        <% end %>
      <% end %>
    </table>
  </div>
</div>

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
decidim-consultations-0.27.9 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.8 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.7 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.6 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.10 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.9 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.5 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.8 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.4 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.3 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.7 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.5 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.2 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.1 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.4 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.0 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.3 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.0.rc2 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.27.0.rc1 app/views/decidim/consultations/admin/consultations/results.html.erb
decidim-consultations-0.26.2 app/views/decidim/consultations/admin/consultations/results.html.erb