From: David ‘Bombe’ Roden Date: Thu, 21 Oct 2010 21:10:11 +0000 (+0200) Subject: Use a “last” attribute instead of relying on “:last-child”. X-Git-Tag: 0.1-RC1~104 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=e34be62367c121e312e0d5da823a5c8995084c04 Use a “last” attribute instead of relying on “:last-child”. --- diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index 0785d70..ea508ea 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -113,7 +113,7 @@ textarea { clear: both; } -#sone .post:last-child { +#sone .post.last { padding: 1ex 0px; border-bottom: none; } diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 8d1f8ce..8e528ac 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,4 +1,4 @@ -
+
<% post.text|html>
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 8ec8384..3bd914f 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -3,7 +3,7 @@

<%= Page.Index.PostList.Title|l10n|html>

- <%foreach posts post> + <%foreach posts post postLoop> <%include include/viewPost.html> <%foreachelse>
<%= Page.Index.PostList.Text.NoPostYet|l10n|html>