From e3062b1c77b52ff9fad23a279844b946d6491417 Mon Sep 17 00:00:00 2001
From: Neo <50623835+neobooru@users.noreply.github.com>
Date: Thu, 19 Jan 2023 18:44:31 +0100
Subject: client: add bulk delete feature (#459)
This introduces a new privilege 'posts:bulk-edit:delete' which by default is given to power users.
---
client/html/posts_header.tpl | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'client/html/posts_header.tpl')
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 @@
%>Stop editing safety<%
%><%
%><% } %><%
+ %><% if (ctx.canBulkDelete) { %><%
+ %>
<%
+ %><% } %><%
%>
--
cgit v1.3
From c1c695f082f53819f092a535aa08125e3f3f48bb Mon Sep 17 00:00:00 2001
From: Eva
Date: Sun, 21 May 2023 20:00:37 +0200
Subject: client/css: stack bulk tagging toggles horizontally on mobile
---
client/css/post-list-view.styl | 3 +++
client/html/posts_header.tpl | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
(limited to 'client/html/posts_header.tpl')
diff --git a/client/css/post-list-view.styl b/client/css/post-list-view.styl
index 7f6aa80..e4f75d5 100644
--- a/client/css/post-list-view.styl
+++ b/client/css/post-list-view.styl
@@ -187,6 +187,9 @@
vertical-align: top
@media (max-width: 1000px)
display: block
+ &.bulk-edit-tags:not(.opened), &.bulk-edit-safety:not(.opened)
+ float: left
+ margin-right: 1em
input
margin-bottom: 0.25em
margin-right: 0.25em
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl
index d1422d2..77d16ed 100644
--- a/client/html/posts_header.tpl
+++ b/client/html/posts_header.tpl
@@ -16,7 +16,6 @@
%>