From bf723ec405cca5b2f76f4b155a6974f140a5813a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 18 Oct 2010 06:49:23 +0200 Subject: [PATCH] =?utf8?q?Re-style=20=E2=80=9Cdelete=20reply=E2=80=9D=20li?= =?utf8?q?nk.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/resources/i18n/sone.en.properties | 1 + src/main/resources/static/css/sone.css | 14 ++++++++++++++ src/main/resources/templates/include/viewPost.html | 11 ++++++++--- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 9bc974d..9372f3b 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -122,3 +122,4 @@ View.Head.ProfileLink.Text=Your Profile View.Post.DeleteLink=Delete Post View.Post.SendReply=Post Reply! +View.Post.Reply.DeleteLink=Delete diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index ab4d8a5..51069c7 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -52,6 +52,10 @@ display: inline; } +#sone .post .status-line { + clear: both; +} + #sone .post .time { color: #666; float: left; @@ -80,10 +84,20 @@ #sone .post .reply .time { float: none; + display: inline; color: #666; font-size: inherit; } +#sone .post .reply .status-line .delete { + float: none; + display: inline; +} + +#sone .post .reply .status-line .delete:before { + content: ' · '; +} + #sone .post .create-reply { clear: both; } diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index e0d1e83..292eddd 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -3,8 +3,10 @@
<% post.text|html>
-
<% post.time|date format="MMM d, yyyy, HH:mm:ss">
- <%if post.sone.isCurrent>
<%= View.Post.DeleteLink|l10n|html>
<%/if> +
+ + <%if post.sone.isCurrent><%/if> +
<%foreach post.replies reply>
@@ -12,7 +14,10 @@
<% reply.text|html>
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
+
+
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
+ <%if reply.sone.isCurrent><%/if> +
<%/foreach>
-- 2.7.4