From 3db482e11fc3cd7b299909d847e39f7f9ed88064 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Fri, 31 Jan 2020 16:49:39 +0300
Subject: Fix buttons, part 2
---
src/main/resources/templates/views/partial/message.html | 12 ++++++++----
src/main/resources/templates/views/thread.html | 12 ++++++++----
2 files changed, 16 insertions(+), 8 deletions(-)
(limited to 'src/main/resources')
diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html
index 132d1ea2..63ac9eb4 100644
--- a/src/main/resources/templates/views/partial/message.html
+++ b/src/main/resources/templates/views/partial/message.html
@@ -37,17 +37,21 @@
- {% if msg.likes > 0 %} {{ msg.likes }}{% endif %}
+ {% if msg.likes > 0 %} {{ msg.likes }}
+ {% else %}
+ {{ i18n("messages","message.recommend") }}
+ {% endif %}
- {{ i18n("messages","message.recommend") }}
{% elseif visitor.uid > 0 %}
- {% if msg.likes > 0 %} {{ msg.likes }}{% endif %}
+ {% if msg.likes > 0 %} {{ msg.likes }}
+ {% else %}
+ {{ i18n("messages","message.recommend") }}
+ {% endif %}
- {{ i18n("messages","message.recommend") }}
{% else %}
diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html
index 21c5a23c..f1563a7c 100644
--- a/src/main/resources/templates/views/thread.html
+++ b/src/main/resources/templates/views/thread.html
@@ -44,17 +44,21 @@
- {% if msg.Likes > 0 %} {{ msg.Likes }}{% endif %}
+ {% if msg.Likes > 0 %} {{ msg.Likes }}
+ {% else %}
+ {{ i18n("messages","message.recommend") }}
+ {% endif %}
- {{ i18n("messages","message.recommend") }}
{% elseif visitor.uid > 0 %}
- {% if msg.Likes > 0 %} {{ msg.Likes }}{% endif %}
+ {% if msg.Likes > 0 %} {{ msg.Likes }}
+ {% else %}
+ {{ i18n("messages","message.recommend") }}
+ {% endif %}
- {{ i18n("messages","message.recommend") }}
{% else %}
--
cgit v1.2.3