Hide 0 likes.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index c3ad07a..991ccec 100644 (file)
@@ -5,7 +5,7 @@
        </div>
        <div class="status-line">
                <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
-               <div class="likes"><span>⬆<span class="like-count"><% post.likes.size></span></span></div>
+               <div class="likes<%if post.likes.size|match value=0> hidden<%/if>"><span>⬆<span class="like-count"><% post.likes.size></span></span></div>
                <%ifnull ! currentSone>
                        <form class="like<%if post.liked> hidden<%/if>" action="likePost.html" method="post">
                                <input type="hidden" name="formPassword" value="<% formPassword|html>" />