Sha256: a9e1adb94448f77c6b3aa94e0a947c8ae8690f12484b5880cb0dc1a847f8a5fe

Contents?: true

Size: 951 Bytes

Versions: 58

Compression:

Stored size: 951 Bytes

Contents

<% if !current_settings.votes_hidden? && current_component.participatory_space.can_participate?(current_user) %>
  <% if component_settings.participatory_texts_enabled? && from_proposals_list %>
    <%= render partial: "decidim/proposals/proposals/participatory_texts/proposal_votes_count", locals: { proposal: proposal, from_proposals_list: true } %>
  <% else %>
    <% progress ||= proposal.proposal_votes_count || 0 %>
    <% total ||= proposal.maximum_votes || 0 %>
    <% subtitle_text = progress >= total ? t("decidim.proposals.proposals.votes_count.most_popular_proposal") : t("decidim.proposals.proposals.votes_count.need_more_votes") %>
    <%= cell(
      "decidim/progress_bar",
      progress,
      total: total,
      units_name: "decidim.proposals.proposals.votes_count.count",
      element_id: "proposal-#{proposal.id}-votes-count",
      subtitle_text: subtitle_text,
      small: from_proposals_list
    ) %>
  <% end %>
<% end %>

Version data entries

58 entries across 58 versions & 1 rubygems

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