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