Use a “last” attribute instead of relying on “:last-child”.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index 8d1f8ce..8e528ac 100644 (file)
@@ -1,4 +1,4 @@
-<div id="<% post.id|html>" class="post">
+<div id="<% post.id|html>" class="post <%if postLoop.last>last<%/if>">
        <div>
                <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id|html>"><% post.sone.niceName|html></a></div>
                <div class="text"><% post.text|html></div>