代码拉取完成,页面将自动刷新
<div th:fragment="treeComment(parent,comment,max)">
<div th:id="'comment'+${comment.id}" class="media"
th:data-p="${comment.parent == null ? '' : comment.parent.id}">
<a class="pull-left"
th:attr="target=${comment.website == null ? null : '_blank'},href=${comment.website == null ? null : comment.website},rel=${(comment.admin || comment.website == null) ? null : 'external nofollow'}">
<img class="media-object"
th:src="${comment.gravatar == null ? urls.url+'/static/img/guest.png' : gravatarPrefix+comment.gravatar}"
data-holder-rendered="true" style="width: 64px; height: 64px;">
</a>
<div class="media-body">
<h5 class="media-heading">
<strong><span class="glyphicon glyphicon-user"
style="color: red" title="管理员" th:if="${comment.admin}"></span><span
th:text="${comment.nickname}"></span></strong> <span
th:if="${parent != null}" th:remove="tag"> <span
class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
<span class="glyphicon glyphicon-user" style="color: red"
title="管理员" th:if="${parent.admin}"></span><span
th:text="${parent.nickname}"></span>
</span>
</h5>
<p style="word-break: break-all" th:utext="${comment.content}"></p>
<h5>
<span
th:text="${times.format(comment.commentDate,'yyyy-MM-dd HH:mm')}" th:data-timestamp="${times.getTime(comment.commentDate)}"></span>
<a href="###" th:if="${user != null}"
th:onclick="'removeComment(\''+${comment.id}+'\')'"
style="margin-right: 8px"><span
class="glyphicon glyphicon-remove" aria-hidden="true"></span></a> <a
href="###"
th:if="${user != null && comment.status.name() == 'CHECK'}"
th:onclick="'checkComment(\''+${comment.id}+'\')'"
style="margin-right: 8px"><span class="glyphicon glyphicon-ok"
aria-hidden="true"></span></a> <a href="###" style="margin-right: 8px"
th:onclick="'toReply(\''+${comment.id}+'\')'"><span
class="glyphicon glyphicon-comment" aria-hidden="true"></span></a> <a
href="###" th:unless="${#lists.isEmpty(comment.parents)}"
th:onclick="'queryConversations(\''+${comment.id}+'\')'">查看对话</a>
</h5>
<iterator
th:if="${comment.parents.size() < (max-1) && comment.children.size() > 0}"
th:remove="tag" th:each="child : ${comment.children}">
<div th:replace="fragment :: treeComment(${comment},${child},${max})"></div>
</iterator>
</div>
<iterator
th:if="${comment.parents.size() >= (max-1) && comment.children.size() > 0}"
th:remove="tag" th:each="child : ${comment.children}">
<div th:replace="fragment :: treeComment(${comment},${child},${max})"></div>
</iterator>
</div>
</div>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。