aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/partial
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-01-31 16:49:39 +0300
committerGravatar Vitaly Takmazov2020-01-31 16:49:39 +0300
commit3db482e11fc3cd7b299909d847e39f7f9ed88064 (patch)
treec4eb752c664562f4b45eafe3c9e85cb3f275886f /src/main/resources/templates/views/partial
parent58c0ca3a79c9ad61184666a13e262499a5789bd1 (diff)
Fix buttons, part 2
Diffstat (limited to 'src/main/resources/templates/views/partial')
-rw-r--r--src/main/resources/templates/views/partial/message.html12
1 files changed, 8 insertions, 4 deletions
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 @@
<a href="/{{ msg.mid }}" class="a-like msg-button">
<span class="msg-button-icon">
<i data-icon="ei-heart" data-size="s"></i>
- {% if msg.likes > 0 %}&nbsp;{{ msg.likes }}{% endif %}
+ {% if msg.likes > 0 %}&nbsp;{{ msg.likes }}
+ {% else %}
+ <span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
+ {% endif %}
</span>
- <span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
</a>
{% elseif visitor.uid > 0 %}
<a href="/post?body=!+%23{{ msg.mid }}" class="a-like msg-button">
<span class="msg-button-icon">
<i data-icon="ei-heart" data-size="s"></i>
- {% if msg.likes > 0 %}&nbsp;{{ msg.likes }}{% endif %}
+ {% if msg.likes > 0 %}&nbsp;{{ msg.likes }}
+ {% else %}
+ <span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
+ {% endif %}
</span>
- <span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
</a>
{% else %}
<a href="/login" class="a-login msg-button">