index.jsp 1.2 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
<!DOCTYPE html>

Matija Obreza's avatar
Matija Obreza committed
3
<%@include file="/WEB-INF/jsp/init.jsp"%>
Matija Obreza's avatar
Matija Obreza committed
4
5
6

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
7
<title><spring:message code="metadata.page.title" /></title>
Matija Obreza's avatar
Matija Obreza committed
8
9
</head>
<body>
Matija Obreza's avatar
Matija Obreza committed
10
11
12
13
14
<c:if test="${crop ne null}">
<div>
	<spring:message code="filter.crop" />: <b><a href="<c:url value="/c/${crop.shortName}" />">${crop.name}</a></b>
</div>
</c:if>
Matija Obreza's avatar
Matija Obreza committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
	<div class="nav-header">
		<spring:message code="paged.totalElements" arguments="${traits.totalElements}" />
		<br />
		<spring:message code="paged.pageOfPages" arguments="${traits.number+1},${traits.totalPages}" />
		<a href="?page=${traits.number}">⇇ Previous</a> <a href="?page=${traits.number + 2}">Next ⇉</a>
	</div>

	<table class="accessions">
		<thead>
			<tr>
				<td class="idx-col" />
				<td>Trait</td>
				<td>Crop</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${traits.content}" var="trait" varStatus="status">
				<tr class="${status.count % 2 == 0 ? 'even' : 'odd'}">
					<td class="idx-col">${status.count + traits.size * traits.number}</td>
					<td><a href="<c:url value="/descriptors/${trait.id}" />">${trait.title}</a></td>
					<td><a href="<c:url value="/c/${trait.crop.shortName}" />">${trait.crop.name}</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
Matija Obreza's avatar
Matija Obreza committed
40
41
</body>
</html>