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

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

<h4 class="title"><fmt:message key="report.headPage" /></h4>

<c:choose>
<c:when test="${empty listReport}">
	<div class="warningBox">
    	There is no report for this article at the moment.
    </div>
</c:when>

<c:otherwise>
<c:forEach items="${listReport}" var="report" varStatus="current">

	<table>
		<tr>
			<td><fmt:message key="report.referee" />: ${report.referee.firstName} ${report.referee.lastName}</td>
		</tr>
		<tr>
			<td><fmt:message key="evaluation.titleArticle" /></td>
			<td>${report.article.title}</td>
		</tr>

		<c:forEach items="${container[current.index]}" var="rating">
			<tr>
				<td><fmt:message key="evaluation.note" /></td>
				<td>${rating.criterion.name} is:</td>
				<td>${rating.value}</td>
			</tr>
		</c:forEach>

		<tr>
			<td><fmt:message key="evaluation.commentAuthor" /></td>
			<td>${report.commentAuthor}</td>
		</tr>
	</table>
	<hr>

</c:forEach>
</c:otherwise>

</c:choose>

<br />
<a class="back_link" href="<c:url value="${whereIcome}"/>"><fmt:message key="form.link.back" /></a>

</body>
</html>
