server/java/renkan-web/src/main/webapp/WEB-INF/templates/fragment/paginationFragment.html
author rougeronj
Mon, 22 Dec 2014 12:38:16 +0100
changeset 350 0b6f2883a67b
parent 316 242510015401
permissions -rw-r--r--
update path to the new lib folders
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
     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)}">&lt;&lt;</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})}">&lt;</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} &lt; ${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} &lt; ${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})}">&gt;</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})}">&gt;&gt;</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">&lt;&lt;</a>
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    22
  <a href="#?p.page=3">&lt;</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    23
  <span>...</span>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    24
  <a href="#?p.page=2">3</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    25
  <a href="#?p.page=3">4</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    26
  <span>5</span>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    27
  <a href="#?p.page=5">6</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    28
  <a href="#?p.page=6">7</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    29
  <span>...</span>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    30
  <a href="#?p.page=5">&gt;</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    31
  <a href="#?p.page=7">&gt;&gt;</a> 
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents: 76
diff changeset
    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>