projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
34035a1
)
Move permalinks behind the time, insert comment links after permalinks.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Fri, 15 Apr 2011 04:55:42 +0000
(06:55 +0200)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Fri, 15 Apr 2011 04:55:42 +0000
(06:55 +0200)
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
b6987c3
..
7c3a064
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-769,7
+769,7
@@
function ajaxifyPost(postElement) {
});
/* add “comment” link. */
});
/* add “comment” link. */
- addCommentLink(getPostId(postElement), getPostAuthor(postElement), postElement, $(postElement).find(".post-status-line .
time
"));
+ addCommentLink(getPostId(postElement), getPostAuthor(postElement), postElement, $(postElement).find(".post-status-line .
permalink-author
"));
/* process all replies. */
replyIds = [];
/* process all replies. */
replyIds = [];
@@
-829,7
+829,7
@@
function ajaxifyReply(replyElement) {
});
});
})(replyElement);
});
});
})(replyElement);
- addCommentLink(getPostId(replyElement), getReplyAuthor(replyElement), replyElement, $(replyElement).find(".reply-status-line .
time
"));
+ addCommentLink(getPostId(replyElement), getReplyAuthor(replyElement), replyElement, $(replyElement).find(".reply-status-line .
permalink-author
"));
/* convert “show source” link into javascript function. */
$(replyElement).find(".show-reply-source").each(function() {
/* convert “show source” link into javascript function. */
$(replyElement).find(".show-reply-source").each(function() {
diff --git
a/src/main/resources/templates/include/viewPost.html
b/src/main/resources/templates/include/viewPost.html
index
40fa891
..
8b7ccb8
100644
(file)
--- a/
src/main/resources/templates/include/viewPost.html
+++ b/
src/main/resources/templates/include/viewPost.html
@@
-41,11
+41,11
@@
</form>
</div>
<span class='separator'>·</span>
</form>
</div>
<span class='separator'>·</span>
- <div class="
permalink"><a href="post://<%post.id|html>">[<%= View.Post.Permalink|l10n|html>]
</a></div>
+ <div class="
time"><a href="viewPost.html?post=<% post.id|html>"><% post.time|date format="MMM d, yyyy, HH:mm:ss">
</a></div>
<span class='separator'>·</span>
<span class='separator'>·</span>
- <div class="permalink
"><a href="sone://<%post.sone.id|html>">[<%= View.Post.PermalinkAuthor
|l10n|html>]</a></div>
+ <div class="permalink
permalink-post"><a href="post://<%post.id|html>">[<%= View.Post.Permalink
|l10n|html>]</a></div>
<span class='separator'>·</span>
<span class='separator'>·</span>
- <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="
permalink permalink-author"><a href="sone://<%post.sone.id|html>">[<%= View.Post.PermalinkAuthor|l10n|html>]
</a></div>
<%if ! originalText|match key=parsedText>
<span class='separator'>·</span>
<div class="show-source"><a href="viewPost.html?post=<% post.id|html>&raw=<%if raw>false<%else>true<%/if>"><%= View.Post.ShowSource|l10n|html></a></div>
<%if ! originalText|match key=parsedText>
<span class='separator'>·</span>
<div class="show-source"><a href="viewPost.html?post=<% post.id|html>&raw=<%if raw>false<%else>true<%/if>"><%= View.Post.ShowSource|l10n|html></a></div>
diff --git
a/src/main/resources/templates/include/viewReply.html
b/src/main/resources/templates/include/viewReply.html
index
c5b087d
..
2fa4885
100644
(file)
--- a/
src/main/resources/templates/include/viewReply.html
+++ b/
src/main/resources/templates/include/viewReply.html
@@
-14,9
+14,9
@@
<div class="reply-text text<%if raw> hidden<%/if>"><% parsedText></div>
</div>
<div class="reply-status-line status-line">
<div class="reply-text text<%if raw> hidden<%/if>"><% parsedText></div>
</div>
<div class="reply-status-line status-line">
- <div class="permalink"><a href="sone://<%reply.sone.id|html>">[<%= View.Post.PermalinkAuthor|l10n|html>]</a></div>
- <span class='separator'>·</span>
<div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
<div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
+ <span class='separator'>·</span>
+ <div class="permalink permalink-author"><a href="sone://<%reply.sone.id|html>">[<%= View.Post.PermalinkAuthor|l10n|html>]</a></div>
<%if ! originalText|match key=parsedText>
<span class='separator'>·</span>
<div class="show-reply-source"><a href="viewPost.html?post=<% post.id|html>&raw=<%if raw>false<%else>true<%/if>"><%= View.Post.ShowSource|l10n|html></a></div>
<%if ! originalText|match key=parsedText>
<span class='separator'>·</span>
<div class="show-reply-source"><a href="viewPost.html?post=<% post.id|html>&raw=<%if raw>false<%else>true<%/if>"><%= View.Post.ShowSource|l10n|html></a></div>