From 106c53cce6725591337773d412c0fb74eaf81ed8 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Mon, 17 Apr 2023 16:01:28 +0300
Subject: Add/remove from whitelist on web
---
.../resources/templates/views/partial/usercolumn.html | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
(limited to 'src/main/resources/templates')
diff --git a/src/main/resources/templates/views/partial/usercolumn.html b/src/main/resources/templates/views/partial/usercolumn.html
index ee9ab267..aec72c58 100644
--- a/src/main/resources/templates/views/partial/usercolumn.html
+++ b/src/main/resources/templates/views/partial/usercolumn.html
@@ -19,7 +19,7 @@
{% if isInBL %}
- Unblock
+ Unblock
{% else %}
@@ -27,6 +27,19 @@
Block
{% endif %}
+ {% if visitor.premium or beans.userServiceImpl.isAdminUser(visitor) %}
+ {% if isInWL %}
+
+
+ Remove from VIP
+
+ {% else %}
+
+
+ Add to VIP
+
+ {% endif %}
+ {% endif %}
{% if not isInBLAny %}
--
cgit v1.2.3