aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-06-22 20:00:19 +0300
committerGravatar Vitaly Takmazov2017-06-22 20:00:19 +0300
commit9d98f39c728a072dec4cf5697464039912bf7a55 (patch)
tree04711f4005fc20aae380b3cd444faa95c827cdf7 /juick-www/src/main/webapp/WEB-INF/views
parent532c2699eca2862d8cf2a6a09ad486672679d845 (diff)
fix comment button on own messages
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/views')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/blog.html2
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/blog.html b/juick-www/src/main/webapp/WEB-INF/views/blog.html
index bddaa4e5..b15d1dd4 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/blog.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/blog.html
@@ -37,7 +37,7 @@
{% else %}
<a href="/login" class="a-login">{{ i18n("messages","message.recommend") }}</a>
{% endif %}
- {% if visitor.uid > 0 and (not msg.ReadOnly or visitor.uid == msg.user.uid) %}
+ {% if (visitor.uid > 0 and not msg.ReadOnly) or (visitor.uid == msg.user.uid) %}
<a href="/{{ msg.mid }}" class="a-comment">{{ i18n("messages","message.comment") }}</a>
{% elseif visitor.uid == 0 and not msg.ReadOnly %}
<a href="/login" class="a-login">{{ i18n("messages","message.comment") }}</a>
diff --git a/juick-www/src/main/webapp/WEB-INF/views/index.html b/juick-www/src/main/webapp/WEB-INF/views/index.html
index 9299ccf8..ea5b1ba8 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/index.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/index.html
@@ -37,7 +37,7 @@
{% else %}
<a href="/login" class="a-login">{{ i18n("messages","message.recommend") }}</a>
{% endif %}
- {% if visitor.uid > 0 and (not msg.ReadOnly or visitor.uid == msg.user.uid) %}
+ {% if (visitor.uid > 0 and not msg.ReadOnly) or (visitor.uid == msg.user.uid) %}
<a href="/{{ msg.mid }}" class="a-comment">{{ i18n("messages","message.comment") }}</a>
{% elseif visitor.uid == 0 and not msg.ReadOnly %}
<a href="/login" class="a-login">{{ i18n("messages","message.comment") }}</a>