<%@ include file="/WEB-INF/decorators/include.jsp"%>

<html>
<head>
</head>
<body>

<h4 class="title">Article's list</h4>

<c:forEach items="${listArticle}" var="article">
	<div class="article cbb">
		<h2><a href="<c:url value='detailArticle.htm?id=${article.id}'/>">${article.title}</a> by ${article.mainAuthor.firstName} ${article.mainAuthor.lastName}</h2>
		<p>State: <b>${article.state}</b></p>
		<p><a class="download" href="<c:url value="/download.htm"><c:param name="articleId" value="${article.id}"/></c:url>">Download</a>
		</p>
		<c:if test="${article.state == 'EVALUATED' or article.state == 'REJECTED' or article.state == 'ACCEPTED'}">
			<p><a href="<c:url value="listReport.htm?id=${article.id}"/>"><fmt:message	key="validate.report" /></a></p>
		</c:if>	
	</div>
</c:forEach>


</body>
</html>