Do not ask to unpublish a draft article (#2920) [ci skip]
This commit is contained in:
parent
c2a3d46850
commit
d517050973
1 changed files with 8 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue