Re-style “delete reply” link.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 04:49:23 +0000 (06:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 04:49:23 +0000 (06:49 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/static/css/sone.css
src/main/resources/templates/include/viewPost.html

index 9bc974d..9372f3b 100644 (file)
@@ -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
index ab4d8a5..51069c7 100644 (file)
        display: inline;
 }
 
+#sone .post .status-line {
+       clear: both;
+}
+
 #sone .post .time {
        color: #666;
        float: left;
 
 #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;
 }
index e0d1e83..292eddd 100644 (file)
@@ -3,8 +3,10 @@
                <div class="author profile-link"><a href="viewSone.html?sone=<% post.sone.id>"><% post.sone.niceName|html></a></div>
                <div class="text"><% post.text|html></div>
        </div>
-       <div class="time"><a href="viewPost.html?post=<% post.id>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
-       <%if post.sone.isCurrent><div class="delete"><a href="deletePost.html?post=<% post.id>"><%= View.Post.DeleteLink|l10n|html></a></div><%/if>
+       <div class="status-line">
+               <div class="time"><a href="viewPost.html?post=<% post.id>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
+               <%if post.sone.isCurrent><div class="delete"><a href="deletePost.html?post=<% post.id>"><%= View.Post.DeleteLink|l10n|html></a></div><%/if>
+       </div>
        <div class="replies">
                <%foreach post.replies reply>
                        <div class="reply">
                                        <div class="author profile-link"><a href="viewSone.html?sone=<% reply.sone.id>"><% reply.sone.niceName|html></a></div>
                                        <div class="text"><% reply.text|html></div>
                                </div>
-                               <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
+                               <div class="status-line">
+                                       <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
+                                       <%if reply.sone.isCurrent><div class="delete"><a href="deleteReply.html?reply=<% reply.id>"><%= View.Post.Reply.DeleteLink|l10n|html></a></div><%/if>
+                               </div>
                        </div>
                <%/foreach>
                <div class="create-reply">