Confirm before deleting an article

This commit is contained in:
Atul Bhosale 2018-09-01 19:58:50 +05:30
parent 10d4599c9b
commit 0e901c7f59

View file

@ -24,7 +24,7 @@
<span class="date">{{ date | date(format="%B %e, %Y") }}</span> <span class="date">{{ date | date(format="%B %e, %Y") }}</span>
{% if is_author %} {% if is_author %}
&mdash; &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 %} {% endif %}
</p> </p>
<article> <article>