Add no results message for alt style searches
This commit is contained in:
parent
8502b780c2
commit
b8772c3aad
2 changed files with 7 additions and 6 deletions
|
@ -34,11 +34,12 @@
|
|||
selected: @species&.human_name, include_blank: "Species…"
|
||||
= f.submit "Go", name: nil
|
||||
|
||||
= will_paginate @alt_styles, class: "rainbow-pool-pagination"
|
||||
|
||||
%ul.rainbow-pool-list= render @alt_styles
|
||||
|
||||
= will_paginate @alt_styles, class: "rainbow-pool-pagination"
|
||||
- if @alt_styles.present?
|
||||
= will_paginate @alt_styles, class: "rainbow-pool-pagination"
|
||||
%ul.rainbow-pool-list= render @alt_styles
|
||||
= will_paginate @alt_styles, class: "rainbow-pool-pagination"
|
||||
- else
|
||||
%p.rainbow-pool-no-results We don't have any styles matching that search.
|
||||
|
||||
- content_for :stylesheets do
|
||||
= stylesheet_link_tag "application/breadcrumbs"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
%ui.rainbow-pool-list= render @pet_types
|
||||
= will_paginate @pet_types, class: "rainbow-pool-pagination"
|
||||
- else
|
||||
%p.rainbow-pool-no-results No matching pets found!
|
||||
%p.rainbow-pool-no-results We don't have any pets matching that search.
|
||||
|
||||
- content_for :stylesheets do
|
||||
= stylesheet_link_tag "application/rainbow-pool"
|
||||
|
|
Loading…
Reference in a new issue