app/views/decidim/admin/categories/show.html.erb in decidim-admin-0.11.2 vs app/views/decidim/admin/categories/show.html.erb in decidim-admin-0.12.0.pre

- old
+ new

@@ -1,10 +1,10 @@ <h3><%= translated_attribute(@category.name) %></h3> <div class="actions"> <hr /> - <%= link_to t("decidim.admin.actions.edit"), ["edit", participatory_space, @category] if can? :update, @category %> - <%= link_to t("decidim.admin.actions.destroy"), [participatory_space, @category], method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } if can? :destroy, @category %> + <%= link_to t("decidim.admin.actions.edit"), ["edit", participatory_space, @category] if allowed_to? :update, :category, category: @category %> + <%= link_to t("decidim.admin.actions.destroy"), [participatory_space, @category], method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } if allowed_to? :destroy, :category, category: @category %> </div> <dl> <%= display_for @category, :name,