diff options
author | Vitaly Takmazov | 2018-02-15 12:12:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-15 12:12:17 +0300 |
commit | 9bb8e121fdca3e0a0a93f235b569c8188ef2ed1d (patch) | |
tree | da3258ccccc97b7a801bd667ef4dc8f5accc0b41 /juick-www | |
parent | 1fcbd6b5d9938a86f2ad1bceca171567ae52e1c7 (diff) |
www: fix comment button link for visitors
Diffstat (limited to 'juick-www')
-rw-r--r-- | juick-www/src/main/webapp/WEB-INF/views/partial/message.html | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/message.html b/juick-www/src/main/webapp/WEB-INF/views/partial/message.html index 33f0f5c6..9e3ede6c 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/partial/message.html +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/message.html @@ -50,7 +50,7 @@ <span> {{ i18n("messages","message.recommend") }}</span> </a> {% endif %} - {% if (visitor.uid > 0 and not msg.ReadOnly) or (visitor.uid == msg.user.uid) %} + {% if (not msg.ReadOnly) or (visitor.uid == msg.user.uid) %} <a href="/{{ msg.mid }}" class="a-comment msg-button"> <span class="msg-button-icon"> <i data-icon="ei-comment" data-size="s"></i> @@ -62,18 +62,6 @@ <i data-icon="ei-link" data-size="s"></i> <span> {{ i18n("messages","message.share") }}</span> </a> - {% elseif visitor.uid == 0 and not msg.ReadOnly %} - <a href="/login" class="a-login msg-button"> - <span class="msg-button-icon"> - <i data-icon="ei-comment" data-size="s"></i> - {% if msg.Replies > 0 %} {{ msg.Replies }}{% endif %} - </span> - <span> {{ i18n("messages","message.comment") }}</span> - </a> - <a href="#" class="msg-menu msg-button"> - <i data-icon="ei-link" data-size="s"></i> - <span> {{ i18n("messages","message.share") }}</span> - </a> {% endif %} {% if msg.FriendsOnly %} <a href="#" class="a-privacy">Открыть доступ</a> |