Add a couple of CSS classes for easier identification of elements.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 24 Nov 2010 10:15:44 +0000 (11:15 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 24 Nov 2010 10:15:44 +0000 (11:15 +0100)
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/include/viewReply.html

index d73d998..82cda92 100644 (file)
                        <div class="time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></a></div>
                        <div class="likes<%if post.likes.size|match value=0> hidden<%/if>"><span title="<% post.likes.soneNames|html>">⬆<span class="like-count"><% post.likes.size></span></span></div>
                        <%ifnull ! currentSone>
-                               <form class="like<%if post.liked> hidden<%/if>" action="like.html" method="post">
+                               <form class="like like-post<%if post.liked> hidden<%/if>" action="like.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                        <input type="hidden" name="type" value="post" />
                                        <input type="hidden" name="post" value="<% post.id|html>" />
                                        <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
                                </form>
-                               <form class="unlike<%if ! post.liked> hidden<%/if>" action="unlike.html" method="post">
+                               <form class="unlike unlike-post<%if ! post.liked> hidden<%/if>" action="unlike.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                        <input type="hidden" name="type" value="post" />
@@ -29,7 +29,7 @@
                                </form>
                        <%/if>
                        <%if post.sone.current>
-                               <form class="delete" action="deletePost.html" method="post">
+                               <form class="delete delete-post" action="deletePost.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                        <input type="hidden" name="post" value="<% post.id|html>" />
index 8c51c63..88ead37 100644 (file)
                        <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
                        <div class="likes<%if reply.likes.size|match value=0> hidden<%/if>"><span title="<% reply.likes.soneNames|html>">⬆<span class="like-count"><% reply.likes.size></span></span></div>
                        <%ifnull ! currentSone>
-                               <form class="like<%if reply.liked> hidden<%/if>" action="like.html" method="post">
+                               <form class="like like-reply<%if reply.liked> hidden<%/if>" action="like.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                        <input type="hidden" name="type" value="reply" />
                                        <input type="hidden" name="reply" value="<% reply.id|html>" />
                                        <button type="submit" value="1"><%= View.Post.LikeLink|l10n|html></button>
                                </form>
-                               <form class="unlike<%if ! reply.liked> hidden<%/if>" action="unlike.html" method="post">
+                               <form class="unlike unlike-reply<%if ! reply.liked> hidden<%/if>" action="unlike.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                        <input type="hidden" name="type" value="reply" />
@@ -29,7 +29,7 @@
                                </form>
                        <%/if>
                        <%if reply.sone.current>
-                               <form class="delete" action="deleteReply.html" method="post">
+                               <form class="delete delete-reply" action="deleteReply.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                        <input type="hidden" name="reply" value="<% reply.id|html>" />