blob: e37841a4aa9e14b2144a9c8150a11f4130a92073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{% set title = __("Delete post") %}
{% extends "base.twig" %}
{% block content %}
<div class="page-header">
<h1>{{ __("Do you want to delete this post?") }}</h1>
</div>
<div class="alert alert-danger">
<svg viewBox="0 0 24 24" class="icon"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/></svg>
<span>{{ __("Are you sure you want to delete the following post:") }}</span>
</div>
{% include "components/post.twig" with {
post: ctx.post,
postAuthor: ctx.postAuthor,
attachments: ctx.attachments,
hide_actions: true,
} %}
<div class="page-actions">
<form action=".#post-{{ ctx.post.id }}" method="get" class="seamless-inline">
<input type="hidden" name="_action" value="viewtopic">
<input type="hidden" name="topic" value="{{ ctx.post.topicId }}">
<button>
<svg viewBox="0 0 24 24" class="icon"><path d="m12 19-7-7 7-7"/><path d="M19 12H5"/></svg>
<span>{{ __("Keep post") }}</span>
</button>
</form>
<form action="?_action=deletepost" method="post" class="seamless-inline">
<input type="hidden" name="post" value="{{ ctx.post.id }}">
<input type="hidden" name="confirm" value="{{ ("confirm" ~ ctx.post.id)|hash("sha256", true)|base64_encode }}">
<button class="btn-danger">
<svg viewBox="0 0 24 24" class="icon"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>
<span>{{ __("Delete post") }}</span>
</button>
</form>
</div>
{% endblock %}
|