Sha256: e8d441b954ab24bc4b55132f6818f3f64b7f40601ab3ba8fab4d991600a5acdd
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
<div id="proposal-<%= proposal.id %>-votes-count" class="card__support__data"> <% if !current_settings.votes_hidden? %> <% progress ||= proposal.proposal_votes_count || 0 %> <% total ||= proposal.maximum_votes || 0 %> <% percent = (progress.to_f/total) * 100 %> <% vertical ||= from_proposals_list %> <div class="progress__bar<%= (!vertical) ? " progress__bar--vertical" : "" %>"> <div class="progress__bar__title"> <span class="progress__bar__number"><%= progress %></span><%= "/#{total}" if total != 0 %> <span class="progress__bar__text"><%= t(".count", count: proposal.proposal_votes_count) %></span> </div> <% if total != 0 %> <div class="progress progress__bar__bar" role="progressbar" tabindex="0" aria-valuenow="<%= percent %>" aria-valuemin="0" aria-valuetext="<%= percent %> percent" aria-valuemax="100"> <div class="progress-meter progress__bar__bar--complete" style="width: <%= percent %>%"></div> <div class="progress__bar__bar--incomplete" style="width:calc(100% - <%= percent %>%);"></div> </div> <div class="progress__bar__subtitle"> <% if progress >= total %> <%= t(".most_popular_proposal") %> <% else %> <%= t(".need_more_votes") %> <% end %> </div> <% end %> </div> <% end %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems