### ### List document comments ### ### TODO: web service? ### ## #if(!$showcomments) ## #set($showcomments = $xwiki.getWebPreference("showcomments")) ## #end ## #if($showcomments!="no") #if($xwiki.getWebPreferenceAsInt("commentsorder",1)==1) #set($comments = $doc.getComments()) #else #set($comments = $doc.getComments(false)) #end

$msg.get("comments")

#if($comments.size()>0) #set($count=0) #foreach($comment in $comments) #if($count > 0)
#end #set($count=$count+1)
#useravatar($comment.author)
$!xwiki.getLocalUserName($doc.display('author','view',$comment))#set($date = $doc.display("date","view",$comment)) #if($date != "") – $date#end #if($hasedit) [$msg.get("removethiscomment")]#end
$doc.getRenderedContent($doc.display("comment","view",$comment))
#end #else $msg.get("nocomments") #end #if($xwiki.hasAccessLevel("comment")) #set($cclass = $xwiki.getDocument("XWiki.XWikiComments").getxWikiClass()) #set($comment = $cclass.newObject())
$msg.get("addcomment")...
#end
## #end