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

$msg.get("comments") $comments.size()

#end
#if($comments.size()>0) #foreach($comment in $comments) #if($velocityCount > 1)
#end
##
#useravatar($comment.author)
$!xwiki.getLocalUserName($doc.display('author','view', $comment)) ## #set($date = $doc.display("date","view",$comment)) #set($date = $comment.getProperty("date").value) #if($date) | $xwiki.formatDate($date, "dd.MM.yyyy") $msg.get("at") $xwiki.formatDate($date, "hh:mm a") #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
## comments
## commentscontent #if($inline == true) #end