index.jsp 1.72 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
	<cms:informative-h1 title="country.page.list.title" fancy="true" info="country.page.list.intro" />
Matija Obreza's avatar
Matija Obreza committed
11

Matija Obreza's avatar
Matija Obreza committed
12
13
14
15
16
17
18
19
	<div class="main-col-header clearfix">
	<div class="nav-header pull-left">
		<div class="results">
			<spring:message code="paged.totalElements" arguments="${countries.size()}" />
		</div>
	</div>
	</div>

Matija Obreza's avatar
Matija Obreza committed
20
	<div id="letter-top" class="main-col-header">
Matija Obreza's avatar
Matija Obreza committed
21
22
	<c:set value="" var="hoofdleter" />
	<c:forEach items="${countries}" var="country" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
23
24
		<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)}" />
Matija Obreza's avatar
Matija Obreza committed
25
26
27
28
29
30
31
			<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
32
	<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
33
		<c:forEach items="${countries}" var="country" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
34
			<c:if test="${hoofdleter ne country.getName(pageContext.response.locale).substring(0, 1)}">
Matija Obreza's avatar
Matija Obreza committed
35
				<c:set var="hoofdleter" value="${country.getName(pageContext.response.locale).substring(0, 1)}" />
Matija Obreza's avatar
Matija Obreza committed
36
				<li id="letter-${hoofdleter}" class="hoofdleter"><c:out value="${hoofdleter}" />
Matija Obreza's avatar
Matija Obreza committed
37
					<small><a href="#letter-top"><spring:message code="jump-to-top" /></a></small>
Matija Obreza's avatar
Matija Obreza committed
38
39
				</li>
			</c:if>
40
			<li class="${status.count % 2 == 0 ? 'even' : 'odd'}"><a class="show ${not country.current ? 'disabled' : ''}" href="<c:url value="/geo/${country.code3}" />"><c:out value="${country.getName(pageContext.response.locale)}" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
41
42
		</c:forEach>
	</ul>
Matija Obreza's avatar
Matija Obreza committed
43
	<c:remove var="hoofdleter" />
Matija Obreza's avatar
Matija Obreza committed
44
45
46

</body>
</html>