Commit 9b2e4b94 authored by Liang Ding's avatar Liang Ding

🔨 #12246

parent 2e131795
......@@ -614,7 +614,11 @@ $.extend(Page.prototype, {
result.userName = Util.getUserName();
}
if (typeof(addComment) === "undefined") {
that.addCommentAjax(result.cmtTpl, state);
} else {
that.addCommentAjax(addComment(result, state), state);
}
}
});
}
......
......@@ -15,7 +15,26 @@
<#if 0 != recentComments?size>
<ul class="comments" id="comments">
<#list recentComments as comment>
<#include 'common-comment.ftl'/>
<li id="${comment.oId}">
<div>
<div class="avatar tooltipped tooltipped-n" aria-label="${comment.commentName}"
style="background-image: url(${comment.commentThumbnailURL})"></div>
<main>
<div class="fn-clear">
<#if "http://" == comment.commentURL>
${comment.commentName}
<#else>
<a class="user-name" href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
</#if>
<time class="ft-gray">${comment.commentDate?string("yyyy-MM-dd HH:mm")}</time>
<a class="reply-btn" href="${servePath}${comment.commentSharpURL}">${viewLabel}»</a>
</div>
<div class="content-reset">
${comment.commentContent}
</div>
</main>
</div>
</li>
</#list>
</ul>
</#if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment