Sha256: 74ec62e4d0a9511df9d9cedff1e8a4e0dadd8bab53f58e773cdf20a34b05b9f0
Contents?: true
Size: 898 Bytes
Versions: 19
Compression:
Stored size: 898 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, resource: proposal, 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, resource: proposal, 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, resource: proposal, remote: true, data: {}, class: "button #{endorsement_button_classes(from_proposals_list)} secondary" %> <% end %> <% end %> </div>
Version data entries
19 entries across 19 versions & 1 rubygems