index.jsp 1.39 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="faoInstitutes.page.list.title" /></title>
</head>
<body>
	<h1>
		<spring:message code="faoInstitutes.page.list.title" />
	</h1>
Matija Obreza's avatar
Matija Obreza committed
13
14
	
	<c:if test="${activeOnly eq true}">
Matija Obreza's avatar
Matija Obreza committed
15
		<div class="page-header"><a href="<c:url value="/wiews/" />"><spring:message code="faoInstitutes.viewAll" /></a></div>
Matija Obreza's avatar
Matija Obreza committed
16
17
	</c:if>
	<c:if test="${activeOnly ne true}">
Matija Obreza's avatar
Matija Obreza committed
18
		<div class="page-header"><a href="<c:url value="/wiews/active" />"><spring:message code="faoInstitutes.viewActiveOnly" /></a></div>
Matija Obreza's avatar
Matija Obreza committed
19
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
20

Matija Obreza's avatar
Matija Obreza committed
21
	<div class="nav-header">
Matija Obreza's avatar
Matija Obreza committed
22
		<spring:message code="paged.totalElements" arguments="${pagedData.totalElements}" />
Matija Obreza's avatar
Matija Obreza committed
23
		<br />
Matija Obreza's avatar
Matija Obreza committed
24
25
26
		<spring:message code="paged.pageOfPages" arguments="${pagedData.number+1},${pagedData.totalPages}" />
		<a class="${pagedData.number eq 0 ? 'disabled' :''}" href="?page=${pagedData.number eq 0 ? 1 : pagedData.number}">⇇ Previous</a>
		<a href="?page=${pagedData.number + 2}">Next ⇉</a>
Matija Obreza's avatar
Matija Obreza committed
27
	</div>
Matija Obreza's avatar
Matija Obreza committed
28

Matija Obreza's avatar
Matija Obreza committed
29
	<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
30
		<c:forEach items="${pagedData.content}" var="faoInstitute" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
31
32
33
			<li><a href="<c:url value="/wiews/${faoInstitute.code.toLowerCase()}" />"><b><c:out value="${faoInstitute.code}" /></b> <c:out value="${faoInstitute.fullName}" /></a>
				<spring:message code="faoInstitute.accessionCount" arguments="${faoInstitute.accessionCount}" />
			</li>
Matija Obreza's avatar
Matija Obreza committed
34
35
36
37
38
		</c:forEach>
	</ul>

</body>
</html>