<commit_before>{% extends "base.html" %}
{% load staticfiles %}
{% load custom_tags %}
{% block head %}
{% endblock %}

{% block content %}
    {% include "feedback_list_filter.html" %}
    {% if feedbacks %}
        {% for item in feedbacks %}
            <div class="row feedback_list_row">
                <div class="col-xs-12 col-md-3 feedback_list_img ">
                    <img class="img img-responsive center-cropped"
                         src={% include "feedback_image_url.html" with service_code=item.service_code media_url=item.media_url %} alt="Feedback image"/>
                </div>

                <div class="col-xs-12 col-md-2 feedback_list_details col-md-push-7">
                    <div class="row">
                        <div class="col-sm-12">
                            {% if item|is_open %}
                                <h4 class="text-success">
                                    {{ item|real_status }}<br/>
                                    <small>{{ item.requested_datetime|default_if_none:""|date:"d.m.o " }}</small>
                                </h4>
                            {% else %}
                                <h4 class="text-danger">
                                    {{ item|real_status }}<br/>
                                    <small>{{ item.updated_datetime|default_if_none:""|date:"d.m.o " }}</small>
                                </h4>
                            {% endif %}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <p>Vastuullinen taho: <br/>
                                <small>{{ item.agency_responsible }}</small>
                            </p>
                        </div>
                        <div class="col-sm-12 text-info">
                            {% if item.expected_datetime and not item.status == "closed" %}
                                <p>Arvio: <br/>
                                    <small>{{ item.expected_datetime|time_from_now }}</small>
                                </p>
                            {% endif %}
                        </div>
                    </div>
                    {% if item.distance %}
                        <div class="row">
                            <div class="col-sm-12">

                                <p>Etäisyys:
                                    {% if item.distance.m < 1000 %}
                                        {{ item.distance.m|floatformat:"0" }} m
                                    {% else %}
                                        {{ item.distance.km|floatformat:"2" }} km
                                    {% endif %}
                                </p>

                            </div>
                        </div>
                    {% endif %}
                    <div class="row">
                        <div class="col-sm-12">
                            <p>
                                <small>{{ item.address_string|default:'No Address' }}</small>
                            </p>
                        </div>
                    </div>
                </div>

                <!-- TODO Showing detail content in mobile in accordion (Prototype).Remember to hide details in mobile using hidden-xs in feedback_list_details class --><commit_msg>Some fix in feedback list<commit_after>{% extends "base.html" %}
{% load staticfiles %}
{% load custom_tags %}
{% block head %}
{% endblock %}

{% block content %}
    {% include "feedback_list_filter.html" %}
    {% if feedbacks %}
        {% for item in feedbacks %}
            <div class="row feedback_list_row">
                <div class="col-xs-12 col-md-3 feedback_list_img ">
                    <img class="img img-responsive center-cropped"
                         src={% include "feedback_image_url.html" with service_code=item.service_code media_url=item.media_url %} alt="Feedback image"/>
                </div>

                <div class="col-xs-12 col-md-2 feedback_list_details col-md-push-7">
                    <div class="row">
                        <div class="col-sm-12">
                            {% if item|is_open %}
                                <h4 class="text-success">
                                    {{ item|real_status }}<br/>
                                    <small>{{ item.requested_datetime|default_if_none:""|date:"d.m.o " }}</small>
                                </h4>
                            {% else %}
                                <h4 class="text-danger">
                                    {{ item|real_status }}<br/>
                                    <small>{{ item.updated_datetime|default_if_none:""|date:"d.m.o " }}</small>
                                </h4>
                            {% endif %}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <p>Vastuullinen taho: <br/>
                                <small>{{ item.agency_responsible }}</small>
                            </p>
                        </div>
                        {% if item|is_open and item.expected_datetime%}
                        <div class="col-sm-12 text-info">
                            <p>Arvio: <br/>
                                <small>{{ item.expected_datetime|time_from_now }}</small>
                            </p>
                        </div>
                        {% endif %}
                    </div>
                    {% if item.distance %}
                        <div class="row">
                            <div class="col-sm-12">

                                <p>Etäisyys:
                                    {% if item.distance.m < 1000 %}
                                        {{ item.distance.m|floatformat:"0" }} m
                                    {% else %}
                                        {{ item.distance.km|floatformat:"2" }} km
                                    {% endif %}
                                </p>

                            </div>
                        </div>
                    {% endif %}
                    <div class="row">
                        <div class="col-sm-12">
                            <p>
                                <small>{{ item.address_string|default:'No Address' }}</small>
                            </p>
                        </div>
                    </div>
                </div>

                <!-- TODO Showing detail content in mobile in accordion (Prototype).Remember to hide details in mobile using hidden-xs in feedback_list_details class -->
{'fraction_non_alphanumeric': 0.11941631923764146, 'fraction_numerical': 0.008040500297796307, 'mean_word_length': 0.8362493165664298, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 27, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2255395', 'n_tokens_mistral': 1746, 'n_tokens_neox': 1512, 'n_words': 308}