app/views/decidim/initiatives/admin/initiatives/index.html.erb in decidim-initiatives-0.16.1 vs app/views/decidim/initiatives/admin/initiatives/index.html.erb in decidim-initiatives-0.17.0

- old
+ new

@@ -87,9 +87,15 @@ decidim_admin_initiatives.edit_initiative_path(initiative.to_param), t("actions.configure", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %> + <% if allowed_to?(:answer, :initiative, initiative: initiative) %> + <%= icon_link_to "comment-square", edit_initiative_answer_path(initiative.slug), t("actions.answer", scope: "decidim.initiatives"), class: "action-icon action-icon--answer" %> + <% else %> + <%= icon "comment-square", scope: "decidim.admin", class: "action-icon action-icon--disabled" %> + <% end %> + <% if allowed_to? :read, :initiative, initiative: initiative %> <%= icon_link_to "print", decidim_admin_initiatives.initiative_path(initiative.to_param), t(".print",), class: "action-icon--print" %>