- if @items.empty? || is_last_page?(@items)
  :javascript
    last_page = true;

- if @items.empty?
  %li.no_results No results found.
- elsif is_last_page?(@items)
  %li.book
    .last_page_message End of results.
- else
  = render partial: 'item', collection: @items
- if @items.empty? || is_last_page?(@items)
  :javascript
    last_page = true;

- if @items.empty?
  %li.no_results No results found.
- else
  = render partial: 'item', collection: @items
  - if is_last_page?(@items)
    %li.book
      .last_page_message End of results.
Fix search when there is only 1 page of results
Fix search when there is only 1 page of results
