{% include '_macros/market_tile.html' %} {% include '_macros/more_button.html' %}
{% set api_url = anonApiParams('search', params) %} {% if params.region %} {# If the user entered PotatoSearchâ„¢ `:region=` then update `region`. #} {% set api_url = api_url|urlparams(region=params.region) %} {% endif %} {% if params.sort %} {% set api_url = api_url|urlparams(sort=params.sort) %} {% endif %} {% set api_url = api_url|urlparams(tag='tarako') %} {% defer (url=api_url, pluck='objects', as='app', paginate='ol.listing', id='searchresults') %}

{{ _plural('{n} Result', '{n} Results', n=response.meta.total_count) }} {{ _('Showing 1{total}', total=len(this)) }}

    {% for result in processor(this) %}
  1. {{ market_tile(result, link=true, src='search') }}
  2. {% endfor %} {# Render the more button if there's another page of results #} {% if response.meta.next %} {{ more_button(response.meta.next) }} {% endif %}
{% placeholder %}

{% empty %}

{{ _('No results found') }}

{% except %}

{# Handle 500s so the page isn't blank. (bug 868667) #} {{ _('No results found, try again later') }}

{% end %}