Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit f556a89

Browse files
committed
post_delete.html
1 parent 743caab commit f556a89

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{#
2+
forum/post_delete.html
3+
~~~~~~~~~~~~~~~~~~~~~~
4+
5+
This template is flashed to ensure that the user wants to delete the selected post.
6+
7+
:copyright: (c) 2013-2016 by the Inyoka Team, see AUTHORS for more details.
8+
:license: BSD, see LICENSE for more details.
9+
#}
10+
11+
{% import macros.html as macros %}
12+
13+
{% set submit_label = _('Delete') if action=='delete' else _('Hide') %}
14+
15+
{% call macros.outer_form(csrf_token(), action=post|url(action)|e, submit_label=submit_label) %}
16+
{% if action == 'delete' %}
17+
{% trans link=post|url('show')|e, author=post.author.username|e %}
18+
Do you want to delete the <a href="{{ link }}">post from {{ author }}</a>?
19+
{% endtrans %}
20+
{% else %}
21+
{% trans link=post|url('show')|e, author=post.author.username|e %}
22+
Do you want to hide the <a href="{{ link }}">post from {{ author }}</a>?
23+
{% endtrans %}
24+
{% endif %}
25+
26+
<input type="submit" name="cancel" value="{% trans %}Cancel{% endtrans %}" />
27+
{% endcall %}

0 commit comments

Comments
 (0)