From 7e2f33269f5b5d373a541f6e6e87974cf1215cda Mon Sep 17 00:00:00 2001 From: Van Date: Wed, 30 Sep 2015 21:38:37 +0800 Subject: [PATCH] comment --- bruce/css/bruce.css | 10 +++-- bruce/macro-comments.ftl | 85 +++++++++++++++++++++++----------------- 2 files changed, 55 insertions(+), 40 deletions(-) diff --git a/bruce/css/bruce.css b/bruce/css/bruce.css index e836329..db3a9f2 100644 --- a/bruce/css/bruce.css +++ b/bruce/css/bruce.css @@ -88,6 +88,12 @@ h4, h5, h6 { margin-bottom: 0em; } +.form-control, +#captcha, +#captchaReply { + margin-top: 15px; +} + .cmtFromSym { font-size: 12px; color: #ccc; @@ -98,10 +104,6 @@ h4, h5, h6 { margin-top: 24px; } -.cmtReplyForm { - margin-top: 128px; -} - .gray { color: #ccc; } diff --git a/bruce/macro-comments.ftl b/bruce/macro-comments.ftl index d4b779f..f7d1ce2 100644 --- a/bruce/macro-comments.ftl +++ b/bruce/macro-comments.ftl @@ -1,58 +1,66 @@ <#macro comments commentList article>
-
- <#list commentList as comment> -
- ${comment.commentName} -
-
- <#if "http://" == comment.commentURL> - ${comment.commentName} - <#else> - ${comment.commentName} - - <#if comment.isReply>@ - ${comment.commentOriginalCommentName} - + <#list commentList as comment> +
+ ${comment.commentName} +
+
+ <#if "http://" == comment.commentURL> + ${comment.commentName} + <#else> + ${comment.commentName} + + <#if comment.isReply>@ + ${comment.commentOriginalCommentName} + - • ${comment.commentDate?string("yy-MM-dd HH:mm")} • <#if article.commentable> - Reply - + • ${comment.commentDate?string("yy-MM-dd HH:mm")} • <#if article.commentable> + Reply + -
-
${comment.commentContent}
+
${comment.commentContent}
-
+
<#if article.commentable>
- +
<#if !isLoggedIn> - + - + - + - + - + <#if !isLoggedIn> - + @@ -147,7 +160,7 @@ }; var replyTo = function (id) { - var commentFormHTML = "
- + + + +
- + + + +
- + + + +
+   @@ -71,15 +79,20 @@
- +   +
- +   +
+ + validate +
"; + var commentFormHTML = "
"; page.addReplyForm(id, commentFormHTML); $("#replyForm label").each(function () { $this = $(this);