Browse Source

Update page.ejs

pull/6/head
Tian Yunhao 7 years ago committed by GitHub
parent
commit
688c93beb9
  1. 4
      views/page.ejs

4
views/page.ejs

@ -33,7 +33,7 @@
<a class="active item" href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: paginate.currPage })) %>"><%= paginate.currPage %></a>
<% for (let i = paginate.currPage + 1; i <= paginate.currPage + rightCnt; i++) { %>
<% for (let i = paginate.currPage + 1; i <= paginate.currPage + rightCnt - 1; i++) { %>
<a class="item" href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: i })) %>"><%= i %></a>
<% } %>
@ -50,4 +50,4 @@
</a>
</div>
</div>
<% } %>
<% } %>

Loading…
Cancel
Save