Sha256: 6b12d937d4347592bedc181c8f29f6066b96eade3965bca8f1af7ef5838d53ea
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
<%= link_to resource_path, class: "button #{vote_btn_class} small button--sc#{" disabled" if current_settings.votes_blocked?}", title: t("decidim.decidim_awesome.voting.voting_cards.vote_button") do %> <% if user_voted_weight %> <%= icon "actions", class: "icon" %> <%= t("decidim.decidim_awesome.voting.voting_cards.voted") %> <% elsif proposal.maximum_votes_reached? && !proposal.can_accumulate_supports_beyond_threshold && current_component.participatory_space.can_participate?(current_user) %> <%= t("decidim.proposals.proposals.vote_button.maximum_votes_reached") %> <% elsif vote_limit_enabled? && remaining_votes_count_for(current_user) <= 0 %> <%= t("decidim.proposals.proposals.vote_button.no_votes_remaining") %> <% elsif current_settings.votes_blocked? || !current_component.participatory_space.can_participate?(current_user) %> <%= t("decidim.proposals.proposals.vote_button.votes_blocked") %> <% else %> <%= t("decidim.decidim_awesome.voting.voting_cards.vote_button") %> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems