<%= 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_settings.votes_enabled? || current_order_checked_out?, class: "button tiny budget--list__action success" do %>
<%= icon("check", class: "icon--small", aria_label: t('.remove'), role: "img") %>
<% end %>
<% if current_settings.show_votes? %>
<%= t('.count', count: project.confirmed_orders_count) %>
<% 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_settings.votes_enabled? || current_order_checked_out?, class: "button tiny hollow budget--list__action" do %>
<%= icon("check", class: "icon--small", aria_label: t('.add'), role: "img") %>
<% end %>
<% if current_settings.show_votes? %>
<%= t('.count', count: project.confirmed_orders_count) %>
<% end %>
<% end %>
<% else %>