app/views/decidim/accountability/admin/results/index.html.erb in decidim-accountability-0.26.10 vs app/views/decidim/accountability/admin/results/index.html.erb in decidim-accountability-0.27.0.rc1

- old
+ new

@@ -1,6 +1,5 @@ -<% add_decidim_page_title(t(".title")) %> <div class="card"> <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") %> @@ -73,10 +72,10 @@ </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 allowed_to? :create_children, :result, result: result %> + <% if allowed_to? :update, :result, result: result %> <%= 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 allowed_to? :update, :result, result: result %> <%= icon_link_to "clock", result_timeline_entries_path(result), t("actions.timeline_entries", scope: "decidim.accountability"), class: "action-icon--clock" %>