Sha256: e3b63452431c640a9dbc55456a308a31269464eb91c6210a67a4bf5ccc1541cf

Contents?: true

Size: 840 Bytes

Versions: 10

Compression:

Stored size: 840 Bytes

Contents

<div id="proposal-<%= proposal.id %>-endorsement-button<%= user_group&.id ? "-#{user_group.id}" : "" %>">
  <% if !current_user %>
      <%= action_authorized_button_to :endorse, endorse_label, current_endorsement_url, class: "button #{endorsement_button_classes(from_proposals_list)} secondary" %>
  <% else %>
    <% if proposal.endorsed_by?(current_user, user_group) %>
      <%= action_authorized_button_to :endorse, unendorse_label, current_endorsement_url, method: :delete, remote: true, class: "button #{endorsement_button_classes(from_proposals_list)} success", id: "endorsement_button" %>
    <% else %>
      <%= action_authorized_button_to :endorse, endorse_label, current_endorsement_url, remote: true, data: {  }, class: "button #{endorsement_button_classes(from_proposals_list)} secondary" %>
    <% end %>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-proposals-0.13.1 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.12.2 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.13.0 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.12.1 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.13.0.pre1 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.12.0 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.11.2 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.12.0.pre app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.11.1 app/views/decidim/proposals/proposals/_endorsement_button.html.erb
decidim-proposals-0.11.0.pre1 app/views/decidim/proposals/proposals/_endorsement_button.html.erb