app/views/decidim/accountability/admin/results/index.html.erb in decidim-accountability-0.10.1 vs app/views/decidim/accountability/admin/results/index.html.erb in decidim-accountability-0.11.0.pre1

- old
+ new

@@ -2,11 +2,11 @@ <div class="card-divider"> <h2 class="card-title"> <%= link_to "#{translated_attribute(parent_result.title)} > ", edit_result_path(parent_result) if parent_result %> <%= t(".title") %> <div class="button--title"> - <%= link_to t("actions.new", scope: "decidim.accountability", name: t("models.result.name", scope: "decidim.accountability.admin")), new_result_path(parent_id: parent_result), class: 'button tiny button--simple' if can? :manage, current_feature %> + <%= link_to t("actions.new", scope: "decidim.accountability", name: t("models.result.name", scope: "decidim.accountability.admin")), new_result_path(parent_id: parent_result), class: "button tiny button--simple" if can? :manage, current_component %> <%= render partial: "decidim/accountability/admin/shared/subnav" unless parent_result %> <%= export_dropdown %> </div> </h2> </div> @@ -27,22 +27,22 @@ <%= link_to translated_attribute(result.title), results_path(parent_id: result.id) %><br /> </td> <td class="table-list__actions"> <%= icon_link_to "eye", resource_locator(result).path, t("actions.preview", scope: "decidim.accountability"), class: "action-icon--preview", target: :blank %> - <% if can? :update, current_feature %> + <% if can? :update, current_component %> <%= icon_link_to "plus", results_path(parent_id: result.id), t("actions.new", scope: "decidim.accountability", name: t("models.result.name", scope: "decidim.accountability.admin")), class: "action-icon--plus" %> <% end %> - <% if can? :update, current_feature %> + <% if can? :update, current_component %> <%= icon_link_to "clock", result_timeline_entries_path(result), t("actions.timeline_entries", scope: "decidim.accountability"), class: "action-icon--clock" %> <% end %> - <% if can? :update, current_feature %> + <% if can? :update, current_component %> <%= icon_link_to "pencil", edit_result_path(result), t("actions.edit", scope: "decidim.accountability"), class: "action-icon--edit" %> <% end %> - <% if can? :destroy, current_feature %> + <% if can? :destroy, current_component %> <%= icon_link_to "circle-x", result_path(result), t("actions.destroy", scope: "decidim.accountability"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.accountability", name: t("models.result.name", scope: "decidim.accountability.admin")) } %> <% end %> </td> </tr> <% end %>