| 194 | | <% if stash.page == index + 1 %> |
| 195 | | <%= index+1 %> |
| 196 | | <% else %> |
| 197 | | <a href="?page=<%= index+1 %>"><%= index+1 %></a> |
| 198 | | <% end %> |
| | 201 | <% index += 1 %> |
| | 202 | <% next unless stash.page - 3 <= index && index <= stash.page + 3 %> |
| | 203 | <% if stash.page == index %> |
| | 204 | <%= index %> |
| | 205 | <% else %> |
| | 206 | <a href="?page=<%= index %>"><%= index %></a> |
| | 207 | <% end %> |
| | 208 | <% end %> |
| | 209 | .. |
| | 210 | <% if stash.page < stash.page_slices.length %> |
| | 211 | <a href="?page=<%= stash.page + 1 %>" title="next">></a> |
| | 212 | <% end %> |
| | 213 | <% if stash.page != stash.page_slices.length %> |
| | 214 | <a href="?page=<%= stash.page_slices.length %>" title="last">>></a> |