| author | rougeronj |
| Mon, 22 Dec 2014 12:38:16 +0100 | |
| changeset 350 | 0b6f2883a67b |
| parent 316 | 242510015401 |
| permissions | -rw-r--r-- |
| 127 | 1 |
<!DOCTYPE html> |
|
224
0167b777ad15
remove deprecated warnings + fix date picker default langauge
ymh <ymh.work@gmail.com>
parents:
127
diff
changeset
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" th:lang="${#ctx.getLocale().toLanguageTag()}"> |
|
76
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
<head> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
<meta charset="utf-8" /> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
<title>pagination fragment</title> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
</head> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
<body> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
<div id="paginationFragment" th:fragment="paginationFragment" > |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
<div th:if="${page.totalPages>1}"> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
<a th:if="!${page.firstPage}" th:href="@{${baseUrl}(p.page=1)}"><<</a> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
<a th:if="${page.hasPreviousPage()}" th:href="@{${baseUrl}(p.page=${page.number})}"><</a> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
<span th:if="${page.number-2} > 0">...</span> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
<a th:each="i: ${#numbers.sequence(1,2)}" th:if="${page.number-2+i} > 0" th:href="@{${baseUrl}(p.page=${page.number-2+i})}" th:text="${page.number-2+i}"></a> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
<span th:text="${page.number+1}"></span> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
<a th:each="i: ${#numbers.sequence(1,2)}" th:if="${page.number+1+i} < ${page.totalPages+1}" th:href="@{${baseUrl}(p.page=${page.number+1+i})}" th:text="${page.number+1+i}"></a> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
<span th:if="${page.number+3} < ${page.totalPages}">...</span> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
<a th:if="${page.hasNextPage()}" th:href="@{${baseUrl}(p.page=${page.number+2})}">></a> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
<a th:if="!${page.lastPage}" th:href="@{${baseUrl}(p.page=${page.totalPages})}">>></a> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
</div> |
|
224
0167b777ad15
remove deprecated warnings + fix date picker default langauge
ymh <ymh.work@gmail.com>
parents:
127
diff
changeset
|
20 |
<div th:remove="all"> |
|
0167b777ad15
remove deprecated warnings + fix date picker default langauge
ymh <ymh.work@gmail.com>
parents:
127
diff
changeset
|
21 |
<a href="#?p.page=1"><<</a> |
| 127 | 22 |
<a href="#?p.page=3"><</a> |
23 |
<span>...</span> |
|
24 |
<a href="#?p.page=2">3</a> |
|
25 |
<a href="#?p.page=3">4</a> |
|
26 |
<span>5</span> |
|
27 |
<a href="#?p.page=5">6</a> |
|
28 |
<a href="#?p.page=6">7</a> |
|
29 |
<span>...</span> |
|
30 |
<a href="#?p.page=5">></a> |
|
31 |
<a href="#?p.page=7">>></a> |
|
32 |
</div> |
|
|
76
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
33 |
</div> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
34 |
</body> |
|
523f0647513e
add the count of project by spaces, add pagination, update libraries and add some more unit tests.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
35 |
</html> |