details.jsp 2.9 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
<!DOCTYPE html>

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

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
7
<title><spring:message code="country.page.profile.title" arguments="${country.getName(pageContext.response.locale)}" argumentSeparator="|" /></title>
Matija Obreza's avatar
Matija Obreza committed
8
9
</head>
<body>
Matija Obreza's avatar
Matija Obreza committed
10
	<h1>
Matija Obreza's avatar
Matija Obreza committed
11
		<c:out value="${country.getName(pageContext.response.locale)}" />
Matija Obreza's avatar
Matija Obreza committed
12
		<img class="country-flag bigger" src="${cdnFlagsUrl}/${country.code3.toUpperCase()}.png" />
Matija Obreza's avatar
Matija Obreza committed
13
	</h1>
Matija Obreza's avatar
Matija Obreza committed
14
15

	<c:if test="${not country.current}">
Matija Obreza's avatar
Matija Obreza committed
16
		<div class="alert alert-info">
17
			<spring:message code="country.page.not-current" />
18
19
20
21
			<c:if test="${country.replacedBy != null}">
				<spring:message code="country.replaced-by" arguments="${country.replacedBy.code3}" />
				<a href="${country.replacedBy.code3.toLowerCase()}"><c:out value="${country.replacedBy.getName(pageContext.response.locale)}" /></a>
			</c:if>	
22
23
24
		</div>
	</c:if>

Matija Obreza's avatar
Matija Obreza committed
25
	<div class="jumbotron">
Matija Obreza's avatar
Matija Obreza committed
26
27
28
		<spring:message code="country.stat.countByOrigin" arguments="${countByOrigin}" />
		<c:if test="${countByOrigin gt 0}">
			<a href="<c:url value="/geo/${country.code3.toLowerCase()}/data" />"><spring:message code="view.accessions" /></a>
Matija Obreza's avatar
Matija Obreza committed
29
30
		</c:if>
	</div>
31
32
33
34
35
36
37

	<security:authorize access="hasRole('ADMINISTRATOR')">
		<a href="<c:url value="/geo/${country.code3.toLowerCase()}/edit" />" class="close"> <spring:message code="edit" />
		</a>
	</security:authorize>

	<%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
Matija Obreza's avatar
Matija Obreza committed
38

Matija Obreza's avatar
Matija Obreza committed
39
	<div>
40
41
42
43
		ISO-3166 3-alpha:
		<c:out value="${country.code3}" />
		<br /> ISO-3166 2-alpha:
		<c:out value="${country.code2}" />
Matija Obreza's avatar
Matija Obreza committed
44
	</div>
Matija Obreza's avatar
Matija Obreza committed
45
46
47
48
49
50
	<c:if test="${country.wikiLink ne null}">
		<div>
			<spring:message code="country.more-information" />
			<a target="_blank" rel="nofollow" href="<c:out value="${country.wikiLink}" />"><c:out value="${country.wikiLink}" /></a>
		</div>
	</c:if>
51
	<%-- 	<h3>
52
53
		<spring:message code="country.statistics" />
	</h3>
Matija Obreza's avatar
Matija Obreza committed
54
 --%>
55
56
57
	<h3>
		<spring:message code="country.stat.countByLocation" arguments="${countByLocation}" />
	</h3>
Matija Obreza's avatar
Matija Obreza committed
58
	<ul class="funny-list">
59
		<c:forEach items="${genesysInstitutes}" var="faoInstitute" varStatus="status">
60
61
62
63
			<li class="clearfix ${status.count % 2 == 0 ? 'even' : 'odd'}"><a class="show pull-left" href="<c:url value="/wiews/${faoInstitute.code.toLowerCase()}" />"><b><c:out value="${faoInstitute.code}" /></b> <c:out value="${faoInstitute.fullName}" /></a>
				<div class="pull-right">
					<spring:message code="faoInstitute.accessionCount" arguments="${faoInstitute.accessionCount}" />
				</div></li>
64
65
		</c:forEach>
	</ul>
66

67
	<h4>
Matija Obreza's avatar
Matija Obreza committed
68
		<spring:message code="country.page.faoInstitutes" arguments="${faoInstitutes.size()}" />
69
	</h4>
Matija Obreza's avatar
Matija Obreza committed
70

Matija Obreza's avatar
Matija Obreza committed
71
	<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
72
		<c:forEach items="${faoInstitutes}" var="faoInstitute" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
73
			<li class="${status.count % 2 == 0 ? 'even' : 'odd'}"><a class="show" href="<c:url value="/wiews/${faoInstitute.code.toLowerCase()}" />"><b><c:out value="${faoInstitute.code}" /></b> <c:out value="${faoInstitute.fullName}" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
74
75
		</c:forEach>
	</ul>
76

Matija Obreza's avatar
Matija Obreza committed
77
78
</body>
</html>