app/views/decidim/budgets/projects/_project.html.erb in decidim-budgets-0.8.4 vs app/views/decidim/budgets/projects/_project.html.erb in decidim-budgets-0.9.0
- old
+ new
@@ -13,11 +13,11 @@
<% if current_order && current_order.projects.include?(project) %>
<div class="card--list__data budget-list__data budget-list__data--added">
<span class="card--list__data__number budget-list__number">
<%= budget_to_currency(project.budget) %>
</span>
- <%= 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 %>
+ <%= action_authorized_button_to "vote", 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 tiny budget--list__action success" do %>
<%= icon("check", class: "icon--small", aria_label: t('.remove'), role: "img") %>
<% end %>
<% if current_settings.show_votes? %>
<div class="card__support" style="width: 7em">
<span><%= t('.count', count: project.confirmed_orders_count) %></span>
@@ -27,10 +27,10 @@
<% else %>
<div class="card--list__data budget-list__data">
<span class="card--list__data__number budget-list__number">
<%= budget_to_currency(project.budget) %>
</span>
- <%= 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 %>
+ <%= action_authorized_button_to "vote", 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 tiny hollow budget--list__action" do %>
<%= icon("check", class: "icon--small", aria_label: t('.add'), role: "img") %>
<% end %>
<% if current_settings.show_votes? %>
<div class="card__support" style="width: 7em">
<span><%= t('.count', count: project.confirmed_orders_count) %></span>