projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3785277
)
Store the times of posts and replies with unique class names.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Thu, 25 Nov 2010 14:02:27 +0000
(15:02 +0100)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Thu, 25 Nov 2010 14:02:27 +0000
(15:02 +0100)
src/main/resources/static/javascript/sone.js
patch
|
blob
|
history
src/main/resources/templates/include/viewPost.html
patch
|
blob
|
history
src/main/resources/templates/include/viewReply.html
patch
|
blob
|
history
diff --git
a/src/main/resources/static/javascript/sone.js
b/src/main/resources/static/javascript/sone.js
index
956b3df
..
619b62e
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-299,7
+299,7
@@
function getPostId(element) {
}
function getPostTime(element) {
}
function getPostTime(element) {
- return getPostElement(element).find(".
storage
-time").text();
+ return getPostElement(element).find(".
post
-time").text();
}
function getReplyElement(element) {
}
function getReplyElement(element) {
@@
-311,7
+311,7
@@
function getReplyId(element) {
}
function getReplyTime(element) {
}
function getReplyTime(element) {
- return getReplyElement(element).find(".
storage
-time").text();
+ return getReplyElement(element).find(".
reply
-time").text();
}
function likePost(postId) {
}
function likePost(postId) {
diff --git
a/src/main/resources/templates/include/viewPost.html
b/src/main/resources/templates/include/viewPost.html
index
82cda92
..
452513b
100644
(file)
--- a/
src/main/resources/templates/include/viewPost.html
+++ b/
src/main/resources/templates/include/viewPost.html
@@
-1,6
+1,6
@@
<a name="post-<% post.id|html>"></a>
<div id="<% post.id|html>" class="post<%if loop.last> last<%/if><%if post.new> new<%/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="
storage
-time hidden"><% post.time|html></div>
+ <div class="
post
-time hidden"><% post.time|html></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>
<div class="avatar">
<img src="/WoT/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
</div>
diff --git
a/src/main/resources/templates/include/viewReply.html
b/src/main/resources/templates/include/viewReply.html
index
88ead37
..
d0a7842
100644
(file)
--- a/
src/main/resources/templates/include/viewReply.html
+++ b/
src/main/resources/templates/include/viewReply.html
@@
-1,6
+1,6
@@
<a name="reply-<% reply.id|html>"></a>
<div id="<% reply.id|html>" class="reply<%if reply.new> new<%/if>">
<a name="reply-<% reply.id|html>"></a>
<div id="<% reply.id|html>" class="reply<%if reply.new> new<%/if>">
- <div class="
storage
-time hidden"><% reply.time|html></div>
+ <div class="
reply
-time hidden"><% reply.time|html></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>
<div class="avatar">
<img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
</div>