aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/partial/message.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/templates/views/partial/message.html')
-rw-r--r--src/main/resources/templates/views/partial/message.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html
index 47dfb6c5..a41a3064 100644
--- a/src/main/resources/templates/views/partial/message.html
+++ b/src/main/resources/templates/views/partial/message.html
@@ -37,7 +37,7 @@
<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 }}
+ {% if msg.recommendations.size() > 0 %}&nbsp;{{ msg.recommendations.size() }}
{% else %}
<span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
{% endif %}
@@ -47,7 +47,7 @@
<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 }}
+ {% if msg.recommendations.size() > 0 %}&nbsp;{{ msg.recommendations.size() }}
{% else %}
<span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
{% endif %}
@@ -57,8 +57,8 @@
<a href="/login" class="a-login msg-button">
<span class="msg-button-icon">
<i data-icon="ei-heart" data-size="s"></i>
- {% if msg.likes > 0 %}
- {{ msg.likes }}
+ {% if msg.recommendations.size() > 0 %}
+ {{ msg.recommendations.size() }}
{% else %}
<span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
{% endif %}