|
|
|
@ -25,6 +25,14 @@
|
|
|
|
<li>Name: <%=author.name%></li>
|
|
|
|
<li>Name: <%=author.name%></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
|
|
|
|
<h2>Articles Written By This Author</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<% for(var i = 0; i < author.articles.length; i++){ %>
|
|
|
|
|
|
|
|
<li><a href="/articles/<%=author.articles[i]._id%>"><%=author.articles[i].title%></a></li>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<section>
|
|
|
|
<a href="/authors/<%=author._id%>/edit">Edit</a>
|
|
|
|
<a href="/authors/<%=author._id%>/edit">Edit</a>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|