From: David ‘Bombe’ Roden Date: Mon, 18 Oct 2010 04:49:23 +0000 (+0200) Subject: Re-style “delete reply” link. X-Git-Tag: 0.1-RC1~258 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bf723ec405cca5b2f76f4b155a6974f140a5813a;p=Sone.git Re-style “delete reply” link. --- 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>