From 60b94edc695ec06f7055382f50b3310d546fdf6f Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Fri, 11 Jul 2008 07:51:47 +0000 Subject: [MRM-861] -fixed up the number links in the pagination git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@675852 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/WEB-INF/jsp/results.jsp | 50 +++++++++++++++++----- 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp index 3217ccd3f..3bd47cbd3 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp @@ -50,8 +50,14 @@ <%-- search was made from the indices --%> ${fn:length(results.hits) + (currentPage * results.limits.pageSize)} -

Hits: ${(hitsNum - results.limits.pageSize) + 1} to ${hitsNum} of ${results.totalHits}

- + + +

Hits: ${(hitsNum - results.limits.pageSize) + 1} to ${hitsNum} of ${results.totalHits}

+
+ +

Hits: 1 to ${hitsNum} of ${results.totalHits}

+
+

No results

@@ -84,10 +90,34 @@
- - - - + + <%-- Google-style pagination --%> + + + + + 0 + 10 + + + ${(totalPages -1) - 10} + ${totalPages - 1} + + + ${currentPage - 5} + ${currentPage + 5} + + + + + 0 + ${totalPages - 1} + + + + + + @@ -98,12 +128,12 @@ ${i + 1} - - + + - + - + -- cgit v1.2.3