aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-22 15:50:57 +0300
committerGravatar Vitaly Takmazov2017-10-22 15:50:57 +0300
commit6ef236e65a14e7a424d1312a4e1fc4788bd41e40 (patch)
tree700de0bc37bd3f5600d8f6bf930b94cd1c877fcd
parent5f3cfe57e4a70cb56f8984e962a5217465da4b92 (diff)
www: subscribe/delete buttons
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/thread.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/thread.html b/juick-www/src/main/webapp/WEB-INF/views/thread.html
index f7093e0a..a6dd04b3 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/thread.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/thread.html
@@ -48,6 +48,23 @@
{% if (visitor.uid > 0 and not msg.ReadOnly) or (visitor.uid == msg.user.uid) %}
<a href="#" class="msg-menu"><i data-icon="ei-link" data-size="s"></i>&nbsp;Share</a>
{% endif %}
+ {% if visitor.uid > 0 %}
+ {% if visitor.uid != msg.user.uid %}
+ {% if visitorSubscribed %}
+ <a href="/post?body=U+%23{{ msg.mid }}">
+ <i data-icon="ei-check" data-size="s"></i>&nbsp;{{ i18n("messages","message.subscribed") }}
+ </a>
+ {% else %}
+ <a href="/post?body=S+%23{{ msg.mid }}">
+ <i data-icon="ei-plus" data-size="s"></i>&nbsp;{{ i18n("messages","message.subscribe") }}
+ </a>
+ {% endif %}
+ {% else %}
+ <a href="/post?body=D+%23{{ msg.mid }}">
+ <i data-icon="ei-close" data-size="s"></i>&nbsp;{{ i18n("messages","message.delete") }}
+ </a>
+ {% endif %}
+ {% endif %}
{% if msg.FriendsOnly %}
<a href="#" class="a-privacy">Открыть доступ</a>
{% endif %}