projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add anchors to posts and replies.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
include
/
viewPost.html
diff --git
a/src/main/resources/templates/include/viewPost.html
b/src/main/resources/templates/include/viewPost.html
index
58b0786
..
084de2e
100644
(file)
--- a/
src/main/resources/templates/include/viewPost.html
+++ b/
src/main/resources/templates/include/viewPost.html
@@
-1,4
+1,5
@@
-<div id="<% post.id|html>" class="post<%if loop.last> last<%/if>">
+<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>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
</div>
<div class="avatar">
<img src="/WoT/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
</div>
@@
-37,7
+38,8
@@
</div>
<div class="replies">
<%foreach post.replies reply>
</div>
<div class="replies">
<%foreach post.replies reply>
- <div id="<% reply.id|html>" class="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>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
</div>
<div class="avatar">
<img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
</div>