index.jsp 1.15 KB
Newer Older
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
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="user.page.list.title" /></title>
</head>
<body>
	<h1>
		<spring:message code="user.page.list.title" />
	</h1>

	<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}"><spring:message code="pagination.previous-page" /></a> <a href="?page=${pagedData.number + 2}"><spring:message code="pagination.next-page" /></a>
	</div>
	<table class="funny-list">
		<c:forEach items="${pagedData.content}" var="user" varStatus="status">
			<tr class="clearfix ${status.count % 2 == 0 ? 'even' : 'odd'}">
				<td><c:if test="${not user.systemAccount}"><a href="<c:url value="/profile/${user.uuid}" />"><c:out value="${user.name}" /></a></c:if></td>
				<td>${user.uuid}</td>
				<td>${user.email}</td>
				<td>${user.systemAccount ? 'SYSTEM' : ''}</td>
			</tr>
		</c:forEach>
	</table>


</body>
</html>