Skip to content

Commit

Permalink
Fix search when there is only 1 page of results
Browse files Browse the repository at this point in the history
  • Loading branch information
bloopletech committed Jun 23, 2015
1 parent 9d26c2f commit a67919e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/items/_items.html.haml
Expand Up @@ -4,8 +4,8 @@

- 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
= render partial: 'item', collection: @items
- if is_last_page?(@items)
%li.book
.last_page_message End of results.

0 comments on commit a67919e

Please sign in to comment.