Sha256: e840a390822f88ae8411da9e133cd5cd486493250e06410d791974973cd553c4
Contents?: true
Size: 1.15 KB
Versions: 10
Compression:
Stored size: 1.15 KB
Contents
<div id="project-<%= project.id %>-budget-button"> <% 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? || !current_participatory_space.can_participate?(current_user), 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? || !current_participatory_space.can_participate?(current_user), class: "button expanded button--sc budget--list__action" %> <% end %> <% else %> <button class="button expanded button--sc disabled" data-toggle="loginModal"><%= t(".add") %></button> <% end %> </div>
Version data entries
10 entries across 10 versions & 1 rubygems