summaryrefslogtreecommitdiff
path: root/src/application/views/form_delete_post_confirm.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-16 19:47:20 +0200
committerJonas Kohl2024-09-16 19:47:20 +0200
commitf2a5f45355b83540dbb42b3a198a20ec354e0422 (patch)
tree383d3e8e09bfe1dac7f54f579293a4397b16ae05 /src/application/views/form_delete_post_confirm.php
parent6b7e714b59e28bc138681662006941274c3261af (diff)
Way more stuff
Diffstat (limited to 'src/application/views/form_delete_post_confirm.php')
-rw-r--r--src/application/views/form_delete_post_confirm.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/application/views/form_delete_post_confirm.php b/src/application/views/form_delete_post_confirm.php
index 2dc417d..e127235 100644
--- a/src/application/views/form_delete_post_confirm.php
+++ b/src/application/views/form_delete_post_confirm.php
@@ -1,13 +1,9 @@
<div class="panel panel-danger">
<div class="panel-heading">
- <?php if ($postAuthor->id === $GLOBALS["currentUser"]->id): ?>
- <h3 class="panel-title">Do you want to delete your post?</h3>
- <?php else: ?>
- <h3 class="panel-title">Do you want to delete <?= htmlentities($postAuthor->displayName) ?>'s post?</h3>
- <?php endif; ?>
+ <h3 class="panel-title"><?= __("Do you want to delete this post?") ?></h3>
</div>
<div class="panel-body">
- Are you sure you want to delete the following post:<br>
+ <?= __("Are you sure you want to delete the following post:") ?><br>
<?php _view("view_post", [
...$___PARAMS,
"hide_actions" => true
@@ -18,12 +14,12 @@
<form action=".#post-<?= htmlentities(urlencode($post->id)) ?>" method="get" class="seamless-inline">
<input type="hidden" name="_action" value="viewtopic">
<input type="hidden" name="topic" value="<?= htmlentities($post->topicId) ?>">
- <button class="btn btn-default">Keep my post</button>
+ <button class="btn btn-default"><?= __("Keep post") ?></button>
</form>
<form action="?_action=deletepost" method="post" class="seamless-inline">
<input type="hidden" name="post" value="<?= htmlentities($post->id) ?>">
<input type="hidden" name="confirm" value="<?= htmlentities(base64_encode(hash("sha256", "confirm" . $post->id, true))); ?>">
- <button class="btn btn-danger">Delete my post</button>
+ <button class="btn btn-danger"><?= __("Delete post") ?></button>
</form>
</div>
</div>