From 2c8b130ac310e2b6f4f27ec78bc68aee0d54682e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 20 Feb 2013 14:50:00 +0800 Subject: [PATCH] =?UTF-8?q?@oncereply=20=E7=9C=8B=E4=B8=8B=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=BA=86=E4=B8=8D=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstyle/css/bootstyle.css | 9 +++-- bootstyle/macro-comments.ftl | 69 +++++++++++++++++++----------------- 2 files changed, 44 insertions(+), 34 deletions(-) diff --git a/bootstyle/css/bootstyle.css b/bootstyle/css/bootstyle.css index d2fdc1d..6c245ff 100644 --- a/bootstyle/css/bootstyle.css +++ b/bootstyle/css/bootstyle.css @@ -131,10 +131,16 @@ a:hover { .article-comments{ margin-bottom: 20px; + position: relative; +} + +.comment-body-ref { + position: absolute; + left: 86px; + width: 80%; } .bs-docs-example { - position: relative; padding: 20px; *padding-top: 0px; background-color: #fff; @@ -146,7 +152,6 @@ a:hover { } .bs-docs-example-child { - position: relative; padding: 5px; *padding-top: 0px; background-color: #fff; diff --git a/bootstyle/macro-comments.ftl b/bootstyle/macro-comments.ftl index 675237b..c63f308 100644 --- a/bootstyle/macro-comments.ftl +++ b/bootstyle/macro-comments.ftl @@ -2,36 +2,38 @@
<#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 "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} + +
+
@@ -116,7 +118,7 @@ var addComment = function (result, state) { var html = new Array(); - html.push('
'); + html.push('
'); html.push(''); html.push(''); html.push(''); @@ -124,12 +126,15 @@ html.push('

'); html.push(result.replyNameHTML); if (state !== "") { + var commentOriginalCommentName = $("#" + page.currentCommentId + " .media-heading a").first().text(); html.push(' '); - html.push(' '+page.currentCommentId+''); + html.push(' '+commentOriginalCommentName+''); } html.push(''); html.push(' '+ result.commentDate.substring(0, 19)); - html.push(' '); + html.push('  '); html.push('${replyLabel}'); html.push(''); html.push('

'); @@ -147,6 +152,6 @@ // emotions page.replaceCommentsEm("#comments .article-body"); <#nested> - })(); + })(); \ No newline at end of file