Commit 9b458639 authored by Van's avatar Van

#12180 dynamic

parent 2d54f891
......@@ -9,7 +9,7 @@
<#else>
<a class="user-name" href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
</#if>
<#if true> comment.isReply
<#if false> comment.isReply
@
<a class="user-name" href="${servePath}${article.permalink}#${comment.commentOriginalCommentId}"
onmouseover="page.showComment(this, '${comment.commentOriginalCommentId}', 23);"
......
......@@ -9,40 +9,24 @@
</head>
<body>
<#include "header.ftl">
<main class="main wrapper">
<div class="content">
<#if 0 != recentComments?size>
<ul class="comments" id="comments">
<#list recentComments as comment>
<li class="fn-clear">
<img class="avatar-48" title="${comment.commentName}" src="${comment.commentThumbnailURL}">
<div class="comment-body">
<div class="fn-clear comment-meta">
<span class="fn-left">
<#if "http://" == comment.commentURL>
<span>${comment.commentName}</span>
<#else>
<a href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
</#if>
<time>${comment.commentDate?string("yyyy-MM-dd HH:mm")}</time>
</span>
<a class="fn-right" href="${servePath}${comment.commentSharpURL}">${viewLabel}»</a>
</div>
<div class="comment-content post-body article-body">
${comment.commentContent}
</div>
</div>
</li>
</#list>
</ul>
</#if>
<div class="wrapper">
<div class="main-wrap">
<main>
<#if 0 != recentComments?size>
<ul class="comments" id="comments">
<#list recentComments as comment>
<#include 'common-comment.ftl'/>
</#list>
</ul>
</#if>
</main>
<#include "side.ftl">
</div>
<#include "side.ftl">
</main>
</div>
<#include "footer.ftl">
<script>
var $commentContents = $(".comments .comment-content");
var $commentContents = $(".comments .content-reset");
for (var i = 0; i < $commentContents.length; i++) {
var str = $commentContents[i].innerHTML;
$commentContents[i].innerHTML = Util.replaceEmString(str);
......
<#macro comments commentList article>
<#if commentList?size gt 0>
<header class='title'><h2>${commentList?size} ${commentLabel}</h2></header>
</#if>
<header class='title'><h2>${commentLabel}</h2></header>
<ul class="comments" id="comments">
<#list commentList as comment>
<#include 'common-comment.ftl'/>
......
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