diff --git a/lib/solr_helpers/pagination.rb b/lib/solr_helpers/pagination.rb index 6ad6cb8..ac32b00 100644 --- a/lib/solr_helpers/pagination.rb +++ b/lib/solr_helpers/pagination.rb @@ -23,11 +23,11 @@ def paginator(total_pages, display_range=3, aParams=params) new_params.delete("facet.field") if total_pages && total_pages.to_i > 1 current_page = new_params["page"] ? new_params["page"].to_i : 1 - html = "" + html += "" return html.html_safe end end @@ -80,7 +80,7 @@ def page_button_previous(current_page, aParams) html = "" html += (current_page == 1) ? "
  • " : "
  • " if current_page != 1 - html += link_to "".html_safe, to_page(current_page-1, aParams) + html += link_to "«".html_safe, to_page(current_page-1, aParams) else # use a span instead of a link if it is inactive html += "" @@ -96,7 +96,7 @@ def page_button_next(current_page, total_pages, aParams) html = "" html += (current_page == total_pages) ? "
  • " : "
  • " if current_page != total_pages - html += link_to "".html_safe, to_page(current_page+1, aParams) + html += link_to "»".html_safe, to_page(current_page+1, aParams) else html += "" end