Grails conditional html
I was wondering how I can make this code in my view conditional - output it if there is a comment, but if there isn't a comment, don't output the empty 开发者_运维百科<p class="comment"></p>
<p class="comment">
${progressItem.comment}
</p>
<g:if test="${(progressItem?.comment?.size() > 0)}">
<p class="comment">
${progressItem.comment}
</p>
</g:if>
精彩评论