<%= link_to project, class: "card__link" do %>
<%= translated_attribute project.title %>
<% end %>
<%= render partial: "decidim/budgets/projects/tags", locals: { project: project } %>
<% if current_user.present? %>
<% if current_order && current_order.projects.include?(project) %>
<%= budget_to_currency(project.budget) %>
<%= action_authorized_button_to "vote", order_line_item_path(project_id: project), method: :delete, remote: true, data: { disable: true, budget: project.budget }, disabled: current_order_checked_out?, class: "button tiny budget--list__action success" do %>
<%= icon("check", class: "icon--small", aria_label: t('.remove'), role: "img") %>
<% end %>
<% else %>
<%= budget_to_currency(project.budget) %>
<%= action_authorized_button_to "vote", order_line_item_path(project_id: project), method: :post, remote: true, data: { disable: true, budget: project.budget, add: true }, disabled: current_order_checked_out?, class: "button tiny hollow budget--list__action" do %>
<%= icon("check", class: "icon--small", aria_label: t('.add'), role: "img") %>
<% end %>
<% end %>
<% else %>
<% end %>