aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-17 15:00:14 +0300
committerGravatar Vitaly Takmazov2023-04-17 15:00:14 +0300
commitcf3a5d8c979b114fceef43b35541b941bcbd62a1 (patch)
tree9a639a3b3ad35b94ebf13cad5889e9fa4974b820 /src/main/resources
parent36bbb8317990022453b6127d90b11ffd5122d596 (diff)
Private posts
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/messages.properties2
-rw-r--r--src/main/resources/messages_ru.properties2
-rw-r--r--src/main/resources/templates/views/thread.html12
3 files changed, 11 insertions, 5 deletions
diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties
index e6612732..1c136f77 100644
--- a/src/main/resources/messages.properties
+++ b/src/main/resources/messages.properties
@@ -66,6 +66,8 @@ message.subscribed=Subscribed
message.delete=Delete
message.loginForSending=<a href="{0}" class="a-login">Login</a> to post messages and comments
message.sendLoginToXmpp=Send <b>LOGIN</b> to <a href="xmpp:juick@juick.com?message;body=LOGIN">juick@juick.com</a>
+message.lock=Make private
+message.unlock=Make public
messages.next=Next
diff --git a/src/main/resources/messages_ru.properties b/src/main/resources/messages_ru.properties
index f07c8136..cce622d5 100644
--- a/src/main/resources/messages_ru.properties
+++ b/src/main/resources/messages_ru.properties
@@ -65,6 +65,8 @@ message.subscribed=Подписан
message.delete=Удалить
message.loginForSending=Чтобы добавлять сообщения и комментарии, <a href="{0}" class="a-login">представьтесь</a>
message.sendLoginToXmpp=Отправьте <b>LOGIN</b> на <a href="xmpp:juick@juick.com?message;body=LOGIN">juick@juick.com</a>
+message.lock=Скрыть
+message.unlock=Открыть доступ
messages.next=Читать дальше
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 %}&nbsp;{{ msg.recommendations.size() }}
+ {% if msg.FriendsOnly %}
+ <i data-icon="ei-unlock" data-size="s"></i>
+ <span>&nbsp;{{ i18n("messages","message.unlock") }}</span>
{% else %}
- <span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
+ <i data-icon="ei-lock" data-size="s"></i>
+ <span>&nbsp;{{ i18n("messages","message.lock") }}</span>
{% endif %}
</span>
</a>