<% if (comment.authorUrl) { %>
<%= comment.authorName %>
<% } else { %>
<%= comment.authorName %>
<% } %>
<% if ( comment.parentId == null ) { %>
<% _.each(comment.replies, function ( reply ) {%>
<%= _.template(self, { comment: reply, currentUser: currentUser, formTemplate: formTemplate }) %>
<% });%>
<% if (currentUser){ %>
<%= _.template(formTemplate, { currentUser: currentUser, formClass: 'reply-form', commentId: comment.id })%>
<% if (comment.authorId === currentUser.id) { %>
Delete
<% } %>
<% } %>
<% } else { %>
<% if (currentUser && comment.authorId === currentUser.id) { %>
Delete
<% } %>
<% } %>