removeddit/jst/subredditPagination.jst

14 lines
No EOL
270 B
Text

<div id="pagination">
Page:
<% if(start > 1) { %>
<a href="<%= urlBase+1 %>">1</a> ...
<% }
for(var i = start; i <= end; i++) {
if(currentPage === i) { %>
<span><%= i %></span>
<% } else { %>
<a href="<%= urlBase+i %>"><%= i %></a>
<% }
} %>
</div>