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

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

<html>
<head>
<title><spring:message code="organization.page.list.title" /></title>
</head>
<body>
	<h1>
		<spring:message code="organization.page.list.title" />
12
13
14
15
		<security:authorize access="hasRole('ADMINISTRATOR')">
			<a href="<c:url value="/org/ORGANIZATION/edit" />" class="close"> <spring:message code="add" />
			</a>
		</security:authorize>
Matija Obreza's avatar
Matija Obreza committed
16
17
	</h1>

18
19


Matija Obreza's avatar
Matija Obreza committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	<div class="nav-header">
		<spring:message code="paged.totalElements" arguments="${pagedData.totalElements}" />
		<br />
		<spring:message code="paged.pageOfPages" arguments="${pagedData.number+1},${pagedData.totalPages}" />
		<a class="${pagedData.number eq 0 ? 'disabled' :''}" href="?page=${pagedData.number eq 0 ? 1 : pagedData.number}">⇇ Previous</a> <a href="?page=${pagedData.number + 2}">Next ⇉</a>
	</div>

	<ul class="funny-list">
		<c:forEach items="${pagedData.content}" var="organization" varStatus="status">
			<li class="clearfix ${status.count % 2 == 0 ? 'even' : 'odd'}"><a class="show pull-left" href="<c:url value="/org/${organization.slug}" />"><b><c:out value="${organization.slug}" /></b> <c:out value="${organization.title}" /></a></li>
		</c:forEach>
	</ul>

</body>
</html>