summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorNeo <50623835+neobooru@users.noreply.github.com>2023-01-19 18:44:31 +0100
committerGitHub <noreply@github.com>2023-01-19 18:44:31 +0100
commite3062b1c77b52ff9fad23a279844b946d6491417 (patch)
treea037b90b2a6a2f4fb5da20a339efdd8642c7871a /client/html
parent8088ff3bbe101907c2cea3341bc4437285b3d12d (diff)
client: add bulk delete feature (#459)
This introduces a new privilege 'posts:bulk-edit:delete' which by default is given to power users.
Diffstat (limited to 'client/html')
-rw-r--r--client/html/posts_header.tpl7
-rw-r--r--client/html/posts_page.tpl4
2 files changed, 11 insertions, 0 deletions
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl
index e0ba0ea..d1422d2 100644
--- a/client/html/posts_header.tpl
+++ b/client/html/posts_header.tpl
@@ -28,4 +28,11 @@
%><a href class='mousetrap button append close'>Stop editing safety</a><%
%></form><%
%><% } %><%
+ %><% if (ctx.canBulkDelete) { %><%
+ %><form class='horizontal bulk-edit bulk-edit-delete'><%
+ %><a href class='mousetrap button append open'>Mass delete</a><%
+ %><input class='mousetrap start' type='submit' value='Delete selected posts'/><%
+ %><a href class='mousetrap button append close'>Stop deleting</a><%
+ %></form><%
+ %><% } %><%
%></div>
diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl
index 7836278..52011ad 100644
--- a/client/html/posts_page.tpl
+++ b/client/html/posts_page.tpl
@@ -50,6 +50,10 @@
<% } %>
</span>
<% } %>
+ <% if (ctx.canBulkDelete && ctx.parameters && ctx.parameters.delete) { %>
+ <a href class='delete-flipper'>
+ </a>
+ <% } %>
</span>
</li>
<% } %>