Add no results message for alt style searches

This commit is contained in:
Emi Matchu 2024-12-29 15:47:12 -08:00
parent 8502b780c2
commit b8772c3aad
2 changed files with 7 additions and 6 deletions

View file

@ -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"

View file

@ -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"