<% if(pagination.includes(Number(current_page) - 1)) {%>
< Previous
<% } else {%>
<%}%>
<% for(page of pagination) { %> <% if (page == current_page) {%>
<%=page + 1%>
<% } else { %>
<%=page + 1%>
<% } %> <% } %>
<% if(pagination.includes(Number(current_page) + 1)) {%>
Next >
<% } else {%>
<%}%>