<%@ page contentType="text/html; charset=UTF-8"%><%@ include file="/WEB-INF/jspf/include/taglibs.jsp"%>

<c:choose>
	<c:when test="${not empty notificationList}">
	<c:forEach var="item" varStatus="status" items="${notificationList}">
	<div class="tile notifications" style="cursor: pointer;" onclick="showBlock( 'notificationRoot', 'notification', { ...notificationQuery, id: '${item.id}' } );">
		<div style="float: right; margin: 10px;">
			<c:choose>
				<c:when test="${item.read}"><img src="${pageContext.request.contextPath}/img/mail_open.png" class="icon1" title="прочитано"/></c:when>
				<c:otherwise><img src="${pageContext.request.contextPath}/img/mail.png" class="icon1" title="новое"/></c:otherwise>
			</c:choose>
		</div>
		<div class="paramColor paramFont notificationDate"><fmt:formatDate type="BOTH" dateStyle="LONG" timeStyle="SHORT" value="${item.dateTime}"/></div>
		<div class="titleFont2 titleColor notificationTitle" style="margin-top: 10px;">${item.subject}</div>
	</div>
	</c:forEach>
	</c:when>
	<c:otherwise><bg:dataNotFound/></c:otherwise>
</c:choose>
