Sha256: 6007170b42fbda56511f59c1da24607135b99c27017f9e76fd249f281c64c948
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
var $proposalVotesCount = $('#proposal-<%= proposal.id %>-votes-count'); var $proposalVoteButton = $('#proposal-<%= proposal.id %>-vote-button'); $proposalVotesCount.html('<%= j(render partial: 'decidim/proposals/proposals/votes_count', locals: { proposal: proposal, from_proposals_list: @from_proposals_list }) %>'); $proposalVoteButton.html('<%= j(render partial: 'decidim/proposals/proposals/vote_button', locals: { proposal: proposal, from_proposals_list: @from_proposals_list }) %>'); <% if vote_limit_enabled? %> var $remainingVotesCount = $('#remaining-votes-count'); var $notVotedButtons = $('.card__button.button').not('.success'); $remainingVotesCount.html('<%= j(render partial: 'decidim/proposals/proposals/remaining_votes_count') %>'); <% if remaining_votes_count_for(current_user) == 0 %> $notVotedButtons.attr('disabled', true); $notVotedButtons.val('<%= t('decidim.proposals.proposals.vote_button.no_votes_remaining') %>'); <% else %> $notVotedButtons.attr('disabled', false); $notVotedButtons.val('<%= t('decidim.proposals.proposals.vote_button.vote') %>'); <% end %> <% end %>
Version data entries
3 entries across 3 versions & 2 rubygems