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 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
(limited to 'src/main/resources/templates/views/partial/message.html')
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 %}
--
cgit v1.2.3