Add a way to delete articles

Fixes #116
This commit is contained in:
Bat
2018-09-01 16:28:47 +01:00
parent 70ef4d6a74
commit cea548b821
12 changed files with 103 additions and 53 deletions
+4
View File
@@ -22,6 +22,10 @@
}}</a></span>
&mdash;
<span class="date">{{ date | date(format="%B %e, %Y") }}</span>
&mdash;
{% if is_author %}
<a href="{{ article.url}}delete">{{ "Delete this article" | _ }}</a>
{% endif %}
</p>
<article>
{{ article.post.content | safe }}