diff options
Diffstat (limited to 'src/main/resources/templates')
-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> |