<% 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)%> <%}});%>
<%}%>