app/views/decidim/budgets/projects/_project.html.erb in decidim-budgets-0.11.2 vs app/views/decidim/budgets/projects/_project.html.erb in decidim-budgets-0.12.0.pre

- old
+ new

@@ -4,20 +4,20 @@ <%= link_to project, class: "card__link" do %> <h5 class="card__title budget-list__title"> <%= translated_attribute project.title %> </h5> <% end %> - <%= render partial: "decidim/shared/tags", locals: { resource: project, tags_class_extra: "tags--project" } %> + <%= cell "decidim/tags", project, context: {extra_classes: ["tags--project"]} %> </div> </div> <% if current_user.present? %> <% 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, "redirect-url": project_path(project) }, 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? || !current_participatory_space.can_participate?(current_user), 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, "redirect-url": project_path(project) }, 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? || !current_participatory_space.can_participate?(current_user), 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>