{% extends "oscar/catalogue/browse.html" %} {% load i18n %} {% load category_tags %} {% load product_tags ocyanjson ocyan_oscar %} {% block categories %} {% if form %}

{% trans "Search" %}

{% for value in search_form.selected_facets %} {% endfor %} {% include "partials/form_field.html" with field=form.q %} {% include "partials/form_field.html" with field=form.sort_by %}
{% endif %} {% ocyanjson "theme" "category_navigation_depth" 1 as category_navigation_depth %} {% category_tree as tree_categories %} {% if tree_categories %}

{% trans "Categories" %}

{% endif %} {% endblock %} {% block facets %} {% if has_facets %}

{% trans "Refine by" %}

{% for field, data in facet_data.items %} {% if data.results %} {% include 'search/partials/facet.html' with name=data.name items=data.results %} {% endif %} {% endfor %}
{% endif %}

{{ shop_name }}

{% endblock %} {% block content %}
{# Render other search params as hidden inputs #} {% for value in search_form.selected_facets %} {% endfor %} {% if paginator.count %} {% if paginator.num_pages > 1 %} {% blocktrans with start=page_obj.start_index end=page_obj.end_index count num_results=paginator.count %} {{ num_results }} result - showing {{ start }} to {{ end }}. {% plural %} {{ num_results }} results - showing {{ start }} to {{ end }}. {% endblocktrans %} {% else %} {% blocktrans count num_results=paginator.count %} {{ num_results }} result. {% plural %} {{ num_results }} results. {% endblocktrans %} {% endif %} {% if search_form.should_be_rendered_on_category %}
{% include "partials/form_field.html" with field=search_form.sort_by %}
{% endif %} {% else %}

{% trans "0 results." %}

{% endif %}
{% if products %}
{% for product in products %}
{% render_product product %}
{% endfor %}
{% include "partials/pagination.html" %}
{% else %}

{% trans "No products found." %}

{% endif %} {% endblock content %}