From: David ‘Bombe’ Roden Date: Fri, 15 Apr 2011 04:55:42 +0000 (+0200) Subject: Move permalinks behind the time, insert comment links after permalinks. X-Git-Tag: 0.6.2^2~12 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=400a459052ed5a102142944fe9386c9d25438be4 Move permalinks behind the time, insert comment links after permalinks. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index b6987c3..7c3a064 100644 --- 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. */ - 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 = []; @@ -829,7 +829,7 @@ function ajaxifyReply(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() { diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 40fa891..8b7ccb8 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -41,11 +41,11 @@ · - +
<% post.time|date format="MMM d, yyyy, HH:mm:ss">
· - + · -
<% post.time|date format="MMM d, yyyy, HH:mm:ss">
+ <%if ! originalText|match key=parsedText> ·
<%= View.Post.ShowSource|l10n|html>
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index c5b087d..2fa4885 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -14,9 +14,9 @@
<% parsedText>
- - ·
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
+ · + <%if ! originalText|match key=parsedText> ·