Merge pull request #188 from Atul9/confirm-delete

[#184] Confirm before deleting an article
This commit is contained in:
Baptiste Gelez 2018-09-03 16:28:00 +01:00 committed by GitHub
commit 1d65582abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
<span class="date">{{ date | date(format="%B %e, %Y") }}</span>
{% if is_author %}
&mdash;
<a href="{{ article.url}}delete">{{ "Delete this article" | _ }}</a>
<a href="{{ article.url}}delete" onclick="return confirm('Are you sure you?')">{{ "Delete this article" | _ }}</a>
{% endif %}
</p>
<article>