<commit_before>{% extends 'FrontendBundle::layout.html.twig' %}
{% from 'FrontendBundle:Macros:misc.html.twig' import pagination %}

{% block title %} {{ 'frontend.products'|trans }} :: {{ parent() }}{% endblock %}

{% block breadcrumb %}
    <a href="{{ path('homepage') }}">{{ 'frontend.title.homepage'|trans }}</a>
    <a href="#">{{ 'frontend.title.products' }}</a>
{% endblock %}

{% block content %}

    <div class="information-blocks">
        <div class="row">
            <div class="col-md-12 col-md-push-0 col-sm-8 col-sm-push-4">

                <div class="page-selector">
                    {{ pagination(products) }}
                    <div class="shop-grid-controls">
                        <div class="entry">
                            <div class="inline-text">Sorty by</div>
                            <div class="simple-drop-down">
                                <select name="sorting">
                                    <option>Position</option>
                                    <option>Price</option>
                                    <option>Category</option>
                                    <option>Rating</option>
                                    <option>Color</option>
                                </select>
                            </div>
                            <div class="sort-button"></div>
                        </div>
                        <div class="entry">
                            <div class="view-button active grid"><i class="fa fa-th"></i></div>
                            <div class="view-button list"><i class="fa fa-list"></i></div>
                        </div>
                        <div class="entry">
                            <div class="inline-text">Show</div>
                            <div class="simple-drop-down" style="width: 75px;">
                                <select name="perpage">
                                    <option>10</option>
                                    <option>15</option>
                                    <option>20</option>
                                </select>
                            </div>
                            <div class="inline-text">per page</div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>

                <div class="row shop-grid grid-view">

                    {% for product in products %}
                        {% include 'FrontendBundle:Product:products/item.html.twig' with {'product' : product} %}
                    {% endfor %}

                </div>
                <div class="page-selector">
                    <div class="description">Showing: {{ products.getCurrentPageOffsetStart() }}-{{ products.getCurrentPageOffsetEnd() }} of {{ products.getNbResults() }}</div>
                    {{ pagination(products) }}
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>
    <div>
        <div class="tabs-entry">
            <div class="products-swiper">
                {{ sonata_block_render({type: 'frontend.block.factories'}, {newest: true}) }}
            </div>
        </div>

        <div class="tabs-entry">
            <div class="products-swiper">
                {{ sonata_block_render({type: 'frontend.block.products'}) }}
            </div>
        </div>
    </div>

{% endblock %}    <commit_msg>Change product list format<commit_after>{% extends 'FrontendBundle::layout.html.twig' %}
{% from 'FrontendBundle:Macros:misc.html.twig' import pagination %}

{% block title %} {{ 'frontend.products'|trans }} :: {{ parent() }}{% endblock %}

{% block breadcrumb %}
    <a href="{{ path('homepage') }}">{{ 'frontend.title.homepage'|trans }}</a>
    <a href="#">{{ 'frontend.title.products' }}</a>
{% endblock %}

{% block content %}

    <div class="information-blocks">
        <div class="row">
            <div class="col-md-9 col-md-push-3 col-sm-8 col-sm-push-4">

                <div class="page-selector">
                    {{ pagination(products) }}
                    <div class="shop-grid-controls">
                        <div class="entry">
                            <div class="inline-text">Sorty by</div>
                            <div class="simple-drop-down">
                                <select name="sorting">
                                    <option>Position</option>
                                    <option>Price</option>
                                    <option>Category</option>
                                    <option>Rating</option>
                                    <option>Color</option>
                                </select>
                            </div>
                            <div class="sort-button"></div>
                        </div>
                        <div class="entry">
                            <div class="view-button active grid"><i class="fa fa-th"></i></div>
                            <div class="view-button list"><i class="fa fa-list"></i></div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>

                <div class="row shop-grid grid-view">

                    {% for product in products %}
                        {% include 'FrontendBundle:Product:products/item.html.twig' with {'product' : product} %}
                    {% endfor %}

                </div>
                <div class="page-selector">
                    <div class="description">Showing: {{ products.getCurrentPageOffsetStart() }}-{{ products.getCurrentPageOffsetEnd() }} of {{ products.getNbResults() }}</div>
                    {{ pagination(products) }}
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}    
{'fraction_non_alphanumeric': 0.15024672451931256, 'fraction_numerical': 0.0028926322953888037, 'mean_word_length': 1.176231025546094, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 13, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6204137', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1421, 'n_words': 260}