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