From e34be62367c121e312e0d5da823a5c8995084c04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 21 Oct 2010 23:10:11 +0200 Subject: [PATCH] =?utf8?q?Use=20a=20=E2=80=9Clast=E2=80=9D=20attribute=20i?= =?utf8?q?nstead=20of=20relying=20on=20=E2=80=9C:last-child=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/css/sone.css | 2 +- src/main/resources/templates/include/viewPost.html | 2 +- src/main/resources/templates/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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>
-- 2.7.4