@_content id=contentId>
<#assign content=object/>
Comment - ${content.title}
${content.description!}
<#if user?has_content>
<@_commentList advanced=true userId=user.id contentId=contentId status=2>
<#if page.totalCount gt 0>
My Comments
<#list page.list as a>
${user.nickName} under review${a.createDate}
${a.text!}Edit
#list>
#if>
@_commentList>
#if>
<#macro merge name value><#if !.vars[name]??><@"<#assign ${name}=''>"?interpret />#if><#if value??><@"<#assign ${name}=${name}+'${value},'>"?interpret />#if>#macro>
<@_commentList contentId=contentId pageIndex=pageIndex>
<#list page.list as a>
<@merge 'userIds' a.userId!/>
<@merge 'userIds' a.replyUserId!/>
#list>
<@_sysUser ids=userIds!><#assign userMap=map!/>@_sysUser>
Comments
<#list page.list as a>
${userMap[a.userId?string].nickName}${a.createDate}
<#if a.replyId?has_content>
<@_comment id=a.replyId>
${userMap[a.replyUserId?string].nickName} : ${object.text!}
@_comment>
#if>
${a.text!}Reply
#list>
@_commentList>
@_content>