diff options
author | Vitaly Takmazov | 2023-04-17 15:00:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-04-17 15:00:14 +0300 |
commit | cf3a5d8c979b114fceef43b35541b941bcbd62a1 (patch) | |
tree | 9a639a3b3ad35b94ebf13cad5889e9fa4974b820 /src/main/resources/templates/views/thread.html | |
parent | 36bbb8317990022453b6127d90b11ffd5122d596 (diff) |
Private posts
Diffstat (limited to 'src/main/resources/templates/views/thread.html')
-rw-r--r-- | src/main/resources/templates/views/thread.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html index 84c52282..819a627e 100644 --- a/src/main/resources/templates/views/thread.html +++ b/src/main/resources/templates/views/thread.html @@ -40,13 +40,15 @@ </div> {% endif %} <nav class="l"> - {% if visitor.uid == msg.user.uid %} - <a href="/{{ msg.mid }}" class="a-like msg-button"> + {% if visitor.uid == msg.user.uid and (msg.user.premium or beans.userServiceImpl.isAdminUser(msg.user)) %} + <a href="/{{ msg.mid }}" class="a-privacy msg-button"> <span class="msg-button-icon"> - <i data-icon="ei-heart" data-size="s"></i> - {% if msg.recommendations.size() > 0 %} {{ msg.recommendations.size() }} + {% if msg.FriendsOnly %} + <i data-icon="ei-unlock" data-size="s"></i> + <span> {{ i18n("messages","message.unlock") }}</span> {% else %} - <span> {{ i18n("messages","message.recommend") }}</span> + <i data-icon="ei-lock" data-size="s"></i> + <span> {{ i18n("messages","message.lock") }}</span> {% endif %} </span> </a> |