aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-06-22 20:07:18 +0300
committerGravatar Vitaly Takmazov2017-06-22 20:08:59 +0300
commit2f2144b46585967996cc441378ef113d1681087b (patch)
treec4ab4e66e885fd9d2c7d2e1218b33ea615a969c3 /juick-www/src/main/webapp/WEB-INF/views
parent9d98f39c728a072dec4cf5697464039912bf7a55 (diff)
delete recommend button from 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, 4 insertions, 0 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 b15d1dd4..3b4bf6c4 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/blog.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/blog.html
@@ -32,11 +32,13 @@
</p>
{% endif %}
<nav class="l">
+ {% if visitor.uid != msg.user.uid %}
{% if visitor.uid > 0 %}
<a href="/post?body=!+%23{{ msg.mid }}" class="a-like">{{ i18n("messages","message.recommend") }}</a>
{% else %}
<a href="/login" class="a-login">{{ i18n("messages","message.recommend") }}</a>
{% endif %}
+ {% endif %}
{% 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 %}
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 ea5b1ba8..5d2ee553 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/index.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/index.html
@@ -32,11 +32,13 @@
</p>
{% endif %}
<nav class="l">
+ {% if visitor.uid != msg.user.uid %}
{% if visitor.uid > 0 %}
<a href="/post?body=!+%23{{ msg.mid }}" class="a-like">{{ i18n("messages","message.recommend") }}</a>
{% else %}
<a href="/login" class="a-login">{{ i18n("messages","message.recommend") }}</a>
{% endif %}
+ {% endif %}
{% 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 %}