Add anchors to posts and replies.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 12 Nov 2010 10:51:14 +0000 (11:51 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 12 Nov 2010 10:51:14 +0000 (11:51 +0100)
src/main/resources/templates/include/viewPost.html

index ddb3dbd..084de2e 100644 (file)
@@ -1,3 +1,4 @@
+<a name="post-<% post.id|html>"></a>
 <div id="<% post.id|html>" class="post<%if loop.last> last<%/if><%if post.new> new<%/if>">
        <div class="avatar">
                <img src="/WoT/GetIdenticon?identity=<% post.sone.id|html>&amp;width=48&height=48" width="48" height="48" alt="Avatar Image" />
@@ -37,6 +38,7 @@
                </div>
                <div class="replies">
                        <%foreach post.replies reply>
+                               <a name="reply-<% reply.id|html>"></a>
                                <div id="<% reply.id|html>" class="reply<%if reply.new> new<%/if>">
                                        <div class="avatar">
                                                <img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&amp;width=36&height=36" width="36" height="36" alt="Avatar Image" />