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

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

<html>
<head>
<title><spring:message code="country.page.list.title" /></title>
</head>
<body>
Matija Obreza's avatar
Matija Obreza committed
10
11
12
	<h1>
		<spring:message code="country.page.list.title" />
	</h1>
Matija Obreza's avatar
Matija Obreza committed
13

Matija Obreza's avatar
Matija Obreza committed
14
15
16
17
18
19
20
21
22
23
24
25
	<div id="letter-top" class="page-header">
	<c:set value="" var="hoofdleter" />
	<c:forEach items="${countries}" var="country" varStatus="status">
		<c:if test="${hoofdleter ne country.name.substring(0, 1)}">
			<c:set var="hoofdleter" value="${country.name.substring(0, 1)}" />
			<a class="letter-pointer" href="#letter-${hoofdleter}"><c:out value="${hoofdleter}" /></a>
		</c:if>
	</c:forEach>
	</div>


	<c:set value="" var="hoofdleter" />
Matija Obreza's avatar
Matija Obreza committed
26
	<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
27
		<c:forEach items="${countries}" var="country" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
28
29
30
31
32
33
			<c:if test="${hoofdleter ne country.name.substring(0, 1)}">
				<c:set var="hoofdleter" value="${country.name.substring(0, 1)}" />
				<li id="letter-${hoofdleter}" class="hoofdleter"><c:out value="${hoofdleter}" />
					<small><a href="#letter-top">Back to top</a></small>
				</li>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
34
			<li class="${status.count % 2 == 0 ? 'even' : 'odd'}"><a class="show ${not country.current ? 'disabled' : ''}" href="<c:url value="/geo/${country.code3.toLowerCase()}" />"><c:out value="${country.name}" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
35
36
		</c:forEach>
	</ul>
Matija Obreza's avatar
Matija Obreza committed
37
	<c:remove var="hoofdleter" />
Matija Obreza's avatar
Matija Obreza committed
38
39
40

</body>
</html>