Skip to content

Commit

Permalink
Fix delete of content page version
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrett committed Feb 21, 2024
1 parent 879f849 commit 2aedf76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/content_pages/_table_of_draft_versions.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<td class="govuk-table__cell govuk-!-width-one-quarter">
<%= link_to 'Edit', edit_admin_content_page_content_page_version_path(@content_page, version), { :class => "govuk-link" } %>
<%= link_to 'Preview and Publish', preview_of_draft_admin_content_page_content_page_version_path(@content_page, version), { :class => "govuk-link" } %>
<%= link_to "Delete", admin_content_page_content_page_version_path(@content_page, version), method: :delete, data: { confirm: "Are you certain you want to delete this version ? " + version.created_at.strftime('%d/%m/%Y %I:%M') } %>
<%= link_to "Delete", admin_content_page_content_page_version_path(@content_page, version), data: { 'turbo-method': :delete, 'turbo-confirm': "Are you certain you want to delete this version ? " + version.created_at.strftime('%d/%m/%Y %I:%M') } %>
</td>
<td class="govuk-table__cell govuk-!-width-one-quarter"><%= version.author %></td>
</tr>
Expand Down

0 comments on commit 2aedf76

Please sign in to comment.