<%if(completeComments != "Y"){%> <%= $.i18n.prop("comments.disclaimer.text")%> <%}%>
<% var totalComments = comments.length + (typeof prevComments != "undefined" ?prevComments.length : 0) %> <%= $.i18n.prop("comments.comments")%>: <%= totalComments > 0 ? totalComments : " " %>
<%if(completeComments != "Y" && this.permission.WRITE){%>
<% if(this.permission.SETTINGS){%>

<%}%> <%if(!this.permission.APPROVED && typeof meetingType != "undefined" && meetingType !== $.i18n.prop("meeting.type.audcom")){%>
<%}%>
<%}%>
    <% var i = typeof prevComments != "undefined" ? prevComments.length : 0; var self = this; _.each(comments, function(comment){ if(comment.baseAuditVO != "null"){ comment.number = comment.hideCommentFlag == $.i18n.prop("submission.comment.private") ? '' : ++i; comment.completeComments = completeComments; comment.userId = self.userId; comment.permission = self.permission; comment.meetingType = self.meetingType; %> <%= templateLoader.templates["submission-comment-thread-template"](comment)%> <%}});%>
<%if (typeof prevComments != "undefined" && prevComments.length > 0) {%>
    <%var i = 0; var self = this; _.each(prevComments, function(comment){ if(comment.baseAuditVO != "null"){ comment.number = comment.hideCommentFlag == $.i18n.prop("submission.comment.private") ? '' : ++i; comment.completeComments = completeComments; comment.userId = self.userId; comment.isPrevious = true; comment.permission = self.permission; comment.meetingType = self.meetingType; %> <%= templateLoader.templates["submission-comment-thread-template"](comment)%> <%}});%>
<%}%>