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

Version Path
publish_my_data-0.0.32 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.31 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.30 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.29 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.28 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.27 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.26 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.25 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.24 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.23 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.22 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.21 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.20 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.19 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.18 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.17 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.16 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.15 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.14 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.13 app/views/publish_my_data/sparql/_pagination.html.erb