Edit <%=article.title%>'s Info
Home
Articles Index
Article Attributes:
<%=article.body%>
Choose and author:
<% for(var currentAuthorIndex = 0; currentAuthorIndex < authors.length; currentAuthorIndex++) { %> <% var isAuthor = false; for(var currentArticleIndex = 0; currentArticleIndex < authors[currentAuthorIndex].articles.length; currentArticleIndex++){ if(authors[currentAuthorIndex].articles[currentArticleIndex]._id.toString() == article._id.toString()){ isAuthor = true; } } %>
><%=authors[currentAuthorIndex].name %>
<% } %>