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/thread.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main/resources/templates/views/thread.html') 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