aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/templates/views/partial/usercolumn.html15
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>