Add support for blog deletion

fix #181
This commit is contained in:
Trinity Pointard
2018-10-20 15:03:59 +02:00
parent a6e73f4667
commit eca458b0e5
4 changed files with 31 additions and 2 deletions
+7
View File
@@ -40,4 +40,11 @@
</div>
{{ macros::paginate(page=page, total=n_pages) }}
</section>
{% if is_author %}
<h2>{{ "Danger zone" | _ }}</h2>
<p>{{ "Be very careful, any action taken here can't be cancelled." | _ }}
<form method="post" action="/~/{{ blog.fqn }}/delete">
<input type="submit" class="inline-block button destructive" value="{{ "Delete this blog" | _ }}">
</form>
{% endif %}
{% endblock content %}