{% with node.view.enable_ajax_api as ajax %}
{% if ajax %}
{% if not suppress_scripts %}{% endif %}
{% endif %}
{% if favored_results %}
{% if not ajax %}
{% for search in searches %}
{% for result in search.results %}
{% if result.get_actual_url in favored_results %}
{{ result }}
{% endif %}
{% endfor %}
{% endfor %}
{% if search.get_actual_more_results_url in favored_results %}
- More results for {{ search }}
{% endif %}
{% endif %}
{% endif %}
{% for search in searches %}
{% if not ajax %}
{% if search.results %}
{% for result in search.results %}
{{ result }}
{% endfor %}
{% if search.has_more_results and search.more_results_url %}
{% endif %}
{% else %}
No results found.
{% endif %}
{% endif %}
{% endfor %}
{% endwith %}