Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Velocity Markup

Comments accessed in this way are unrendered:

#foreach ($cmt in $allComments.getComments($issue))
    <p>$wikiRenderer.render($cmt.body, null)</p>             
#end

Rendering the comments 

Rendering converts the wiki markup in the comments to more formatted TEXT or HTML:

#foreach ($cmt in $allComments.getComments($issue))
    <p>$wikiRenderer.render($cmt.body, $issueRenderContext)</p>             
#end

Styling and Presentation

Just putting out the content may not be sufficient, the following was supplied by a user to improve that:

<style type="text/css">
<!--
a {color:#fc6558};
a:visited {color:#fc6558};
.comment { margin-left: 40px; width: 650px; color:#6d7072; }
-->
</style>
<div class="comment">$wikiRenderer.render($comment.body, null)</div>
  • No labels