Sha256: 3dfd83e28ac7f13354706a2fe7bb45239b7e6208a9c85d8287cc14c85b221497
Contents?: true
Size: 972 Bytes
Versions: 6
Compression:
Stored size: 972 Bytes
Contents
<% if current_user.present? %> <% if current_order && current_order.projects.include?(project) %> <%= action_authorized_button_to "vote", t('.added'), order_line_item_path(project_id: project), method: :delete, remote: true, data: { disable: true, budget: project.budget, "redirect-url": project_path(project) }, disabled: !current_settings.votes_enabled? || current_order_checked_out?, class: "button expanded button--sc success budget--list__action" %> <% else %> <%= action_authorized_button_to "vote", t('.add'), order_line_item_path(project_id: project), method: :post, remote: true, data: { disable: true, budget: project.budget, add: true, "redirect-url": project_path(project) }, disabled: !current_settings.votes_enabled? || current_order_checked_out?, class: "button expanded button--sc budget--list__action" %> <% end %> <% else %> <button class="button expanded button--sc disabled" data-toggle="loginModal"><%= t('.add') %></button> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems