index.jsp 1.26 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
Styling    
Matija Obreza committed
7
<title><spring:message code="traits.page.title" /></title>
Matija Obreza's avatar
Matija Obreza committed
8
9
</head>
<body>
Matija Obreza's avatar
Styling    
Matija Obreza committed
10
11
12
13
14
15
16
17
18
	<h1>
		<spring:message code="trait-list" />
	</h1>

	<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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	<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
44
45
</body>
</html>