Sha256: 0e72fe9bb43296ad9d8ba71b18fa7e32f989ef496823ca374dc10627f8a6a372
Contents?: true
Size: 519 Bytes
Versions: 28
Compression:
Stored size: 519 Bytes
Contents
<nav class="pagination clearfix"> <% #only show prev link if there's a previous page %> <%= link_to("Previous #{@pagination_params.per_page} results".html_safe, params.merge({:page => (@pagination_params.page-1)})) if @pagination_params.page > 1 %> <% #only show the next page if the results for this page is bigger than the page size %> <%= link_to("Next #{@pagination_params.per_page} results".html_safe, params.merge({:page => (@pagination_params.page+1)}), :style => 'float:right' ) if @more_pages%> </nav>
Version data entries
28 entries across 28 versions & 1 rubygems