Skip to content
Snippets Groups Projects
Commit b7b0f599 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1258

parent a6835789
No related branches found
No related tags found
No related merge requests found
......@@ -46,5 +46,10 @@
class: button_classes
# This is not edit_link @page because of the polymorphism of the special pages, which would create a wrong path
%>
<%= publish_link @page %>
<%= link_to t('admin.communication.website.publish.button'),
publish_admin_communication_website_page_path(@page),
class: button_classes,
method: :post unless @page.published
# This is not edit_link @page because of the polymorphism of the special pages, which would create a wrong path
%>
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment