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

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

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

Matija Obreza's avatar
Matija Obreza committed
20
21
	<div id="letter-top" class="main-col-header row">
	<div class="col-md-12 col-sm-12">
Matija Obreza's avatar
Matija Obreza committed
22
23
	<c:set value="" var="hoofdleter" />
	<c:forEach items="${countries}" var="country" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
24
25
		<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
26
27
28
29
			<a class="letter-pointer" href="#letter-${hoofdleter}"><c:out value="${hoofdleter}" /></a>
		</c:if>
	</c:forEach>
	</div>
Matija Obreza's avatar
Matija Obreza committed
30
	</div>
Matija Obreza's avatar
Matija Obreza committed
31

Matija Obreza's avatar
Matija Obreza committed
32
33
34
35

	<c:forEach items="${firstLetters}" var="hoofd">
		<div class="row">
			<div id="letter-B" class="hoofdleter"><c:out value="${hoofd}" />
Matija Obreza's avatar
Matija Obreza committed
36
				<small class="pull-right"><a href="#letter-top"><spring:message code="jump-to-top" /></a></small>
Matija Obreza's avatar
Matija Obreza committed
37
38
39
40
41
42
43
44
45
46
47
			</div>
			<ul class="funny-list list-unstyled">
				<c:forEach items="${countries}" var="country" varStatus="status">
					<c:if test="${country.getName(pageContext.response.locale).substring(0, 1) eq hoofd}">
						<li><a class="show ${not country.current ? 'disabled' : ''}" href="<c:url value="/geo/${country.code3}" />"><c:out value="${country.getName(pageContext.response.locale)}" /></a></li>
					</c:if>
				</c:forEach>
			</ul>
		</div>
	</c:forEach>
	
Matija Obreza's avatar
Matija Obreza committed
48
49
</body>
</html>