diff options
author | Vitaly Takmazov | 2017-06-22 20:07:18 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-06-22 20:08:59 +0300 |
commit | 2f2144b46585967996cc441378ef113d1681087b (patch) | |
tree | c4ab4e66e885fd9d2c7d2e1218b33ea615a969c3 /juick-www/src/main/webapp/WEB-INF/views/blog.html | |
parent | 9d98f39c728a072dec4cf5697464039912bf7a55 (diff) |
delete recommend button from own messages
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/views/blog.html')
-rw-r--r-- | juick-www/src/main/webapp/WEB-INF/views/blog.html | 2 |
1 files changed, 2 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 %} |