Sha256: e6ef20f9961a37822cb81027a0b5192a81f7210bfad98323eabec3304cc7aaed

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

<nav class="pagination clearfix">
  <% #only show prev link if there's a previous page %>
  <%= link_to("Previous #{@per_page} results".html_safe, params.merge({:page => (@page-1)})) if @page > 1 %>
  <% #only show the next page if the results for this page is bigger than the page size %>
  <%= link_to("Next #{@per_page} results".html_safe, params.merge({:page => (@page+1)}), :style => 'float:right'  ) if @more_pages%>
</nav>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
publish_my_data-0.0.3 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.2 app/views/publish_my_data/sparql/_pagination.html.erb
publish_my_data-0.0.1 app/views/publish_my_data/sparql/_pagination.html.erb