diff options
Diffstat (limited to 'src/main/resources/templates/views/partial')
-rw-r--r-- | src/main/resources/templates/views/partial/message.html | 12 |
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 132d1ea28..63ac9eb46 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 %} {{ msg.likes }}{% endif %} + {% if msg.likes > 0 %} {{ msg.likes }} + {% else %} + <span> {{ i18n("messages","message.recommend") }}</span> + {% endif %} </span> - <span> {{ 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 %} {{ msg.likes }}{% endif %} + {% if msg.likes > 0 %} {{ msg.likes }} + {% else %} + <span> {{ i18n("messages","message.recommend") }}</span> + {% endif %} </span> - <span> {{ i18n("messages","message.recommend") }}</span> </a> {% else %} <a href="/login" class="a-login msg-button"> |