diff options
author | Vitaly Takmazov | 2023-04-17 16:01:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-04-17 16:01:28 +0300 |
commit | 106c53cce6725591337773d412c0fb74eaf81ed8 (patch) | |
tree | fe07a0136c63787d6e5f53349af16541faebaf89 /src/main/resources/templates | |
parent | cf3a5d8c979b114fceef43b35541b941bcbd62a1 (diff) |
Add/remove from whitelist on web
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r-- | src/main/resources/templates/views/partial/usercolumn.html | 15 |
1 files changed, 14 insertions, 1 deletions
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 %} <a href="/post?body=BL+%40{{ user.name }}" title="Разблокировать"> <i data-icon="ei-close-o" data-size="s"></i> - <span class="dekstop">Unblock</span> + <span class="desktop">Unblock</span> </a> {% else %} <a href="/post?body=BL+%40{{ user.name }}" title="Заблокировать"> @@ -27,6 +27,19 @@ <span class="desktop">Block</span> </a> {% endif %} + {% if visitor.premium or beans.userServiceImpl.isAdminUser(visitor) %} + {% if isInWL %} + <a href="/api/users/wl?nick={{ user.name }}" data-name={{ user.name }} class="a-vip"> + <i data-icon="ei-unlock" data-size="s"></i> + <span class="desktop">Remove from VIP</span> + </a> + {% else %} + <a href="/api/users/wl?nick={{ user.name }}" data-name={{ user.name }} class="a-vip"> + <i data-icon="ei-lock" data-size="s"></i> + <span class="desktop">Add to VIP</span> + </a> + {% endif %} + {% endif %} {% if not isInBLAny %} <a href="/pm/sent?uname={{ user.name }}" title="Написать приватное сообщение"> <i data-icon="ei-envelope" data-size="s"></i> |