server/src/main/webapp/WEB-INF/templates/fragment/paginationFragment.html
changeset 127 906fed13c1e1
parent 76 523f0647513e
child 224 0167b777ad15
--- a/server/src/main/webapp/WEB-INF/templates/fragment/paginationFragment.html	Tue Mar 26 08:27:58 2013 +0100
+++ b/server/src/main/webapp/WEB-INF/templates/fragment/paginationFragment.html	Tue Apr 02 01:56:11 2013 +0200
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:th="http://www.thymeleaf.org">
 <head>
@@ -18,6 +18,19 @@
  <a th:if="${page.hasNextPage()}" th:href="@{${baseUrl}(p.page=${page.number+2})}">&gt;</a>
  <a th:if="!${page.lastPage}" th:href="@{${baseUrl}(p.page=${page.totalPages})}">&gt;&gt;</a>
  </div>
+ <div th:remove="all">               
+  <a href="#?p.page=1">&lt;&lt;</a>                    
+  <a href="#?p.page=3">&lt;</a>
+  <span>...</span>
+  <a href="#?p.page=2">3</a>
+  <a href="#?p.page=3">4</a>
+  <span>5</span>
+  <a href="#?p.page=5">6</a>
+  <a href="#?p.page=6">7</a>
+  <span>...</span>
+  <a href="#?p.page=5">&gt;</a>
+  <a href="#?p.page=7">&gt;&gt;</a> 
+</div>
  </div>
 </body>
 </html>
\ No newline at end of file