Do not ask to unpublish a draft article (#2920) [ci skip]

This commit is contained in:
rhymes 2019-05-21 21:17:12 +02:00 committed by Mac Siri
parent c2a3d46850
commit d517050973

View file

@ -1,14 +1,18 @@
<%= javascript_include_tag "application" %>
<div class="container delete-confirm">
<h4><%= @article.title %></h4>
<h1>Are you sure you want to delete this article?</h1>
<h2>You cannot undo this action, perhaps you just want to
<a data-no-instant href="<%= @article.path %>/edit">unpublish</a> instead?</h2>
<h2>
You cannot undo this action, perhaps you just want to
<a data-no-instant href="<%= @article.path %>/edit">
<%= @article.published ? "unpublish" : "edit" %>
</a>
instead?
</h2>
<h2>
<a class="delete-link" data-no-instant rel="nofollow" data-method="delete" href="/articles/<%= @article.id %>">DELETE</a>
</h2>
</div>