diff --git a/bootstyle/macro-comments.ftl b/bootstyle/macro-comments.ftl index 2d89516..5cd6086 100644 --- a/bootstyle/macro-comments.ftl +++ b/bootstyle/macro-comments.ftl @@ -2,29 +2,34 @@
<#list commentList as comment> -
+
<#if "http://" == comment.commentURL> <#else> -
+

<#if "http://" == comment.commentURL> ${comment.commentName} <#else> ${comment.commentName} + <#if comment.isReply> + + ${comment.commentOriginalCommentName} + + + ${comment.commentDate?string("yyyy-MM-dd HH:mm:ss")} + ${replyLabel} +

${comment.commentContent} - <#if comment.isReply> -
@@ -32,7 +37,7 @@ <#if article.commentable> -
+
@@ -89,38 +94,6 @@
- -
- <#list commentList as comment> -
- ${comment.commentName} -
-
- <#if "http://" == comment.commentURL> - ${comment.commentName} - <#else> - ${comment.commentName} - - <#if comment.isReply>@ - ${comment.commentOriginalCommentName} - -
- <#if article.commentable> -
- ${comment.commentDate?string("yy-MM-dd HH:mm")} - ${replyLabel} -
- - -
${comment.commentContent}
-
- -
- -
<#macro comment_script oId> @@ -142,33 +115,12 @@ }); var addComment = function (result, state) { - var commentHTML = '
' + $(
' + result.replyNameHTML; - - if (state !== "") { - var commentOriginalCommentName = $("#" + page.currentCommentId + " .comment-panel>.left a").first().text(); - commentHTML += ' @ ' + commentOriginalCommentName + ''; - } - - commentHTML += '
' + result.commentDate.substring(2, 16) - + ' ${replyLabel}
' + - Util.replaceEmString($("#comment" + state).val().replace(//g, ">").replace(/\n/g,"
")) - + '
'; - - return commentHTML; + return ""; } var replyTo = function (id) { - var commentFormHTML = ""; - page.addReplyForm(id, commentFormHTML); - $("#replyForm label").each(function () { - $this = $(this); - $this.attr("for", $this.attr("for") + "Reply"); - }); + var commentFormHTML = ""; + page.addReplyForm(id, commentFormHTML,''); }; (function () { @@ -176,6 +128,6 @@ // emotions page.replaceCommentsEm("#comments .article-body"); <#nested> - })(); + })(); \ No newline at end of file