Use a “last” attribute instead of relying on “:last-child”.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 21 Oct 2010 21:10:11 +0000 (23:10 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 21 Oct 2010 21:10:11 +0000 (23:10 +0200)
src/main/resources/static/css/sone.css
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/index.html

index 0785d70..ea508ea 100644 (file)
@@ -113,7 +113,7 @@ textarea {
        clear: both;
 }
 
-#sone .post:last-child {
+#sone .post.last {
        padding: 1ex 0px;
        border-bottom: none;
 }
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>
index 8ec8384..3bd914f 100644 (file)
@@ -3,7 +3,7 @@
        <h1><%= Page.Index.PostList.Title|l10n|html></h1>
 
        <div id="posts">
-               <%foreach posts post>
+               <%foreach posts post postLoop>
                        <%include include/viewPost.html>
                <%foreachelse>
                        <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>