We end up here if, a) there are 0 listings and b) URL contains param q/share_type/category. Moving the logic to controller/helper would clean up the view code:

```ruby
- with_listings do |listings|
  / Print listings
- without_listings do
  = t(no_listings)
- with_empty_search_results do
  = t(no_listings_match_criteria)
```