From 9577b9513f8a0fb602ae1c68e64f814a8768d234 Mon Sep 17 00:00:00 2001 From: t123yh Date: Sat, 26 Aug 2017 22:11:24 +0800 Subject: [PATCH] Add begin and end page indicator. --- views/page.ejs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/page.ejs b/views/page.ejs index 9e4029c..f8f2bf0 100644 --- a/views/page.ejs +++ b/views/page.ejs @@ -20,7 +20,8 @@ } if (omitLeft) { %> -
...
+ <%= 1 %> +
...
<% } for (let i = paginate.currPage - leftCnt; i < paginate.currPage; i++) { %> @@ -35,11 +36,12 @@ } if (omitRight) { %> -
...
+
...
+ <%= paginate.pageCnt %> <% } %> href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: paginate.currPage + 1 })) %>" <% } %>id="page_next"> -<% } %> +<% } %> \ No newline at end of file