Velocity Markup
Comments accessed in this way are unrendered:
| Code Block |
|---|
#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:
| Code Block |
|---|
#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:
| Code Block | ||||
|---|---|---|---|---|
| ||||
<style type="text/css">
<!--
a {color:#fc6558};
a:visited {color:#fc6558};
.comment { margin-left: 40px; width: 650px; color:#6d7072; }
-->
</style> |
| Code Block | ||||
|---|---|---|---|---|
| ||||
<div class="comment">$wikiRenderer.render($comment.body, null)</div> |