countries.jsp 1.67 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
40
41
42
43
44
45
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="itpgrfa.page.list.title" /></title>
</head>
<body>
	<h1>
		<spring:message code="itpgrfa.page.list.title" />
	</h1>
	
	<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>

	<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.getName(pageContext.response.locale).substring(0, 1)}">
			<c:set var="hoofdleter" value="${country.getName(pageContext.response.locale).substring(0, 1)}" />
			<a class="letter-pointer" href="#letter-${hoofdleter}"><c:out value="${hoofdleter}" /></a>
		</c:if>
	</c:forEach>
	</div>

	<div class="nav-header">
		<spring:message code="paged.totalElements" arguments="${countries.size()}" />
	</div>

	<c:set value="" var="hoofdleter" />
	<ul class="funny-list">
		<c:forEach items="${countries}" var="country" varStatus="status">
			<c:if test="${hoofdleter ne country.getName(pageContext.response.locale).substring(0, 1)}">
				<c:set var="hoofdleter" value="${country.getName(pageContext.response.locale).substring(0, 1)}" />
				<li id="letter-${hoofdleter}" class="hoofdleter"><c:out value="${hoofdleter}" />
					<small><a href="#letter-top"><spring:message code="jump-to-top" /></a></small>
				</li>
			</c:if>
			<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.getName(pageContext.response.locale)}" /></a></li>
		</c:forEach>
	</ul>
	<c:remove var="hoofdleter" />

</body>
</html>