<commit_before>{% import "NumaDOASiteBundle::components.html.twig" as component %}
{% block content %}
    {% set images = item.getImages2() %}
    {% set detailUrl = path('item_details', {'itemId': item.id, 'description': item.getUrlDescription()|url_encode()}) %}
    {% if searchQ is defined %}
        {% set detailUrl = path('item_details', {'itemId': item.id, 'description': item.getUrlDescription()|url_encode(),'searchQ':searchQ}) %}
    {% endif %}
    {% set dealer = item.getDealer() %}
    {% if detailUrl is empty %}
        {% set detailUrl = "details" %}

    {% endif %}
    <div data="{{ item.id }}" id="item_{{ item.id }}" class="row item-row" url="{{ path('item_compare') }}">
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12 items">
            <div class="picture-detail col-md-4">
                <a href="{{ detailUrl }}" class="thumbnail">
                    {% if item.getImage2() is defined and item.getImage2() is not empty %}
                        {{ component.image(item.getImage2().getFieldStringValue(), item.getTitle(), '', 'search_image_sea', 350, 250) }}
                    {% endif %}
                </a>
            </div>
            <div class="shortDetails col-md-6">
                <h4>
                    <a href="{{ detailUrl }}"><span>{{ item.getTitle() }}</span>
                        {{ item.getPriceString() }} {% if (item.getSold()==1) %}<span
                                class="badge">Sold</span>{% endif %}
                    </a>
                </h4>

                {% if item.bodyStyle is defined and item.StockNr is defined and item.exteriorColor is defined and item.getItemFieldByName('mileage') is defined %}
                    {% set ignore_fields = ['Image List','dealer','YouTube Video ID','Price','Seller Comment','IW_NO'] %}
                    <ul class="techData  list-unstyled">
                        {% if item.categoryId()==1 %}
                            {% include 'NumaDOASiteBundle:Item:carDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==2) %}
                            {% include 'NumaDOASiteBundle:Item:marineDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==3) %}
                            {% include 'NumaDOASiteBundle:Item:motoDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==4) %}
                            {% include 'NumaDOASiteBundle:Item:rvsDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==13) %}
                            {% include 'NumaDOASiteBundle:Item:agDetailsSmall.html.twig' %}
                        {% else %}
                        {% endif %}
                    </ul>
                {% endif %}
                {#{% if (item.StockNr) %}#}
                {#Stock Number: {{ item.StockNr }};#}
                {#{% endif %}#}
                {#Listing ID#}
                {## {{ item.id }} {% if item.category is not empty %} in the category "{{ item.category.getName() }} {% endif %}#}
                {#"#}
                {#<div>Posted by {{ dealer }} </div>#}


                {#<span class="glyphicon glyphicon-earphone">{% if dealer %}{{ dealer.phone }}{% endif %}</span>#}

                {#<a href="{{ detailUrl }}">View#}
                {#Details {% if dealer and app.user and app.user.getId()==dealer.id %}({{ item.views }} views){% endif %}</a>#}

                {#<div class="checkbox-inline">#}
                {#<label>#}
                {#<input type="checkbox" class="saveAd"> Save Ad#}
                {#</label>#}
                {#</div>#}
                <div class="checkbox-inline">
                    <label>
                        <input type="checkbox" class="compareAd"> Compare Ad
                    </label>
                </div>
                {% if (dealer and app.user and app.user.getId()==dealer.id) or is_granted("ROLE_DEALER_ADMIN") %}
                    <ul class="list-inline">
                        <li><a href="{{ path('items_edit',{'id':item.id}) }}">Edit</a></li>
                        {% if item.getActive() %}
                            <li><a href="{{ path('items_deactivate',{'id':item.id}) }}">Deactivate</a></li>
                        {% else %}
                            <li><a href="{{ path('items_activate',{'id':item.id}) }}">Activate</a></li>
                        {% endif %}
                        <li><a href="{{ path('items_delete',{'id':item.id}) }}">Delete</a></li>
                    </ul>
                {% endif %}

            </div>
            <div class="btn-group-vertical col-md-2">
                <button type="button" class="btn btn-success eprice" data-itemid="{{ item.id }}"><i
                            class="fa fa-money"></i> Get ePrice
                </button>
                {#<button type="button" class="btn btn-default">Save This Car</button>#}
                <a href="{{ detailUrl }}" class="btn btn-warning"><span>View Details</span></a>
            </div>
        </div>
    </div>
    <br>
    <div class="clear"></div>

{% endblock %}
<commit_msg>buttons color fixed<commit_after>{% import "NumaDOASiteBundle::components.html.twig" as component %}
{% block content %}
    {% set images = item.getImages2() %}
    {% set detailUrl = path('item_details', {'itemId': item.id, 'description': item.getUrlDescription()|url_encode()}) %}
    {% if searchQ is defined %}
        {% set detailUrl = path('item_details', {'itemId': item.id, 'description': item.getUrlDescription()|url_encode(),'searchQ':searchQ}) %}
    {% endif %}
    {% set dealer = item.getDealer() %}
    {% if detailUrl is empty %}
        {% set detailUrl = "details" %}

    {% endif %}
    <div data="{{ item.id }}" id="item_{{ item.id }}" class="row item-row" url="{{ path('item_compare') }}">
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12 items">
            <div class="picture-detail col-md-4">
                <a href="{{ detailUrl }}" class="thumbnail">
                    {% if item.getImage2() is defined and item.getImage2() is not empty %}
                        {{ component.image(item.getImage2().getFieldStringValue(), item.getTitle(), '', 'search_image_sea', 350, 250) }}
                    {% endif %}
                </a>
            </div>
            <div class="shortDetails col-md-6">
                <h4>
                    <a href="{{ detailUrl }}"><span>{{ item.getTitle() }}</span>
                        {{ item.getPriceString() }} {% if (item.getSold()==1) %}<span
                                class="badge">Sold</span>{% endif %}
                    </a>
                </h4>

                {% if item.bodyStyle is defined and item.StockNr is defined and item.exteriorColor is defined and item.getItemFieldByName('mileage') is defined %}
                    {% set ignore_fields = ['Image List','dealer','YouTube Video ID','Price','Seller Comment','IW_NO'] %}
                    <ul class="techData  list-unstyled">
                        {% if item.categoryId()==1 %}
                            {% include 'NumaDOASiteBundle:Item:carDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==2) %}
                            {% include 'NumaDOASiteBundle:Item:marineDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==3) %}
                            {% include 'NumaDOASiteBundle:Item:motoDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==4) %}
                            {% include 'NumaDOASiteBundle:Item:rvsDetailsSmall.html.twig' %}
                        {% elseif(item.categoryId()==13) %}
                            {% include 'NumaDOASiteBundle:Item:agDetailsSmall.html.twig' %}
                        {% else %}
                        {% endif %}
                    </ul>
                {% endif %}
                {#{% if (item.StockNr) %}#}
                {#Stock Number: {{ item.StockNr }};#}
                {#{% endif %}#}
                {#Listing ID#}
                {## {{ item.id }} {% if item.category is not empty %} in the category "{{ item.category.getName() }} {% endif %}#}
                {#"#}
                {#<div>Posted by {{ dealer }} </div>#}


                {#<span class="glyphicon glyphicon-earphone">{% if dealer %}{{ dealer.phone }}{% endif %}</span>#}

                {#<a href="{{ detailUrl }}">View#}
                {#Details {% if dealer and app.user and app.user.getId()==dealer.id %}({{ item.views }} views){% endif %}</a>#}

                {#<div class="checkbox-inline">#}
                {#<label>#}
                {#<input type="checkbox" class="saveAd"> Save Ad#}
                {#</label>#}
                {#</div>#}
                <div class="checkbox-inline">
                    <label>
                        <input type="checkbox" class="compareAd"> Compare Ad
                    </label>
                </div>
                {% if (dealer and app.user and app.user.getId()==dealer.id) or is_granted("ROLE_DEALER_ADMIN") %}
                    <ul class="list-inline">
                        <li><a href="{{ path('items_edit',{'id':item.id}) }}">Edit</a></li>
                        {% if item.getActive() %}
                            <li><a href="{{ path('items_deactivate',{'id':item.id}) }}">Deactivate</a></li>
                        {% else %}
                            <li><a href="{{ path('items_activate',{'id':item.id}) }}">Activate</a></li>
                        {% endif %}
                        <li><a href="{{ path('items_delete',{'id':item.id}) }}">Delete</a></li>
                    </ul>
                {% endif %}

            </div>
            <div class="btn-group-vertical col-md-2">
                <button type="button" class="btn btn-primary eprice" data-itemid="{{ item.id }}"><i
                            class="fa fa-money"></i> Get ePrice
                </button>
                {#<button type="button" class="btn btn-default">Save This Car</button>#}
                <a href="{{ detailUrl }}" class="btn btn-info"><span>View Details</span></a>
            </div>
        </div>
    </div>
    <br>
    <div class="clear"></div>

{% endblock %}

{'fraction_non_alphanumeric': 0.17671298514614278, 'fraction_numerical': 0.005749880210828941, 'mean_word_length': 1.5323950497452075, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6543916', 'n_tokens_mistral': 3185, 'n_tokens_neox': 2829, 'n_words': 556}