|
|
@ -1,7 +1,7 @@ |
|
|
|
<% if (paginate.pageCnt) { %> |
|
|
|
<% if (paginate.pageCnt) { %> |
|
|
|
<div class="ui center aligned grid"> |
|
|
|
<div class="ui center aligned grid"> |
|
|
|
<div class="ui buttons"> |
|
|
|
<div class="ui buttons"> |
|
|
|
<a class="ui<% if (paginate.currPage === 1) { %> disabled<% } %> button" href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: paginate.currPage - 1 })) %>"> |
|
|
|
<a class="ui<% if (paginate.currPage === 1) { %> disabled<% } %> button" <% if (paginate.currPage !== 1) { %>href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: paginate.currPage - 1 })) %>" <% } %>id="page_prev"> |
|
|
|
<i class="left chevron icon"></i> |
|
|
|
<i class="left chevron icon"></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<% |
|
|
|
<% |
|
|
@ -27,7 +27,7 @@ |
|
|
|
%> |
|
|
|
%> |
|
|
|
<li><span>...</span></li> |
|
|
|
<li><span>...</span></li> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
<a class="ui<% if (paginate.currPage === paginate.pageCnt) { %> disabled<% } %> button" href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: paginate.currPage + 1 })) %>"> |
|
|
|
<a class="ui<% if (paginate.currPage === paginate.pageCnt) { %> disabled<% } %> button" <% if (paginate.currPage !== paginate.pageCnt) { %>href="<%= syzoj.utils.makeUrl(req, Object.assign(req.query, { page: paginate.currPage + 1 })) %>" <% } %>id="page_next"> |
|
|
|
<i class="right chevron icon"></i> |
|
|
|
<i class="right chevron icon"></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|