<commit_before>{% extends "base.html" %}
{% load i18n tags %}
{% block title %}{{report.secondary_category.name}} {{report.secondary_category.secondary_category_class.name.lower}} {{report.category.name.lower}} {% trans 'in' %} {{report.responsible_entity.name}}{% endblock %}

{% block script %}
{{ block.super }}


<meta property="og:title" content="{{report.secondary_category.name}} {{report.secondary_category.secondary_category_class.name.lower}} {{report.category.name.lower}} {% trans 'in' %} {{report.responsible_entity.name}}" />
<meta property="og:description" content="{% trans 'Signalez tout type d incident :' %} {{report.secondary_category.name.lower}} {{report.secondary_category.secondary_category_class.name.lower}} {{report.category.name.lower}} {% trans 'in' %} {{report.responsible_entity.name}} {% trans 'sur FixMyStreet qui identifiera alors le service public en charge de le traiter. '%}" />
{% addthis_scripts %}
{% map_scripts %}

<script src="{{ STATIC_URL }}js/attachmentForms.js"></script>
<script>
/******************************/
/* QUERY READY INITIALIZATION */
/******************************/
$(function(){
	$('#map-bxl').fmsMap({ 
		origin:{
			x:{{ report.point.x }},
			y:{{ report.point.y }} 
		}
	});
	$('#map-bxl').fmsMap('addReport', {% report_to_json report %});
});

</script>
{% endblock %}
{% block css %}

{{block.super}}

<!-- ##################### -->
<!-- # SPECIFIC CSS ZONE # -->
<!-- ##################### -->

<style type="text/css" media="screen">
    #update-header {
        float: left;
        width: 100%;
    }
    
    #update-title {
        float: left;
        width: 48%;
    }
    
    #update-email-me {
        float: right;
        width: 48%;
        text-align: right;
        margin-top: 4px;
    }
</style>
{% endblock %}
{% block content %}

<!-- ######################### -->
<!-- # MAIN CONTENT DEFINITION -->
<!-- ######################### -->
<div id="page_content_container">

{% block pageHeader %}
<h1>
    <!-- ########################### -->
    <!-- # DISPLAY REPORT CATEGORY # -->
    <!-- ########################### -->
        {{report.secondary_category.name}}
 	<div style="float:right;margin-top:-23px">
        	<table class="reportActionButtons">
			<tr>
				<td>
					<button onclick="window.location = '{% url report_pdf report.id 0 %}'" class="saveFormButton" style="font-size: 0.4em;margin-top: 0px;width:100%;">{% trans 'report pdf public' %}</button>
				</td>
				{% if report.is_in_progress %}
				<td>
					<button onclick="window.location = '{% url report_update report.id %}?is_fixed=True'" class="saveFormButton" style="font-size: 0.4em;margin-top: 0px;width:100%;">{% trans 'Mark as done' %}</button>
				</td>
				{% endif %}
			</tr>
		</table>
	</div>
</h1>
    {% endblock %}

	<div id="leftcol">    
		<!-- ######### -->
		<!-- IS FIXED  -->
		<!-- ######### -->
		{% if report.is_fixed %}
			<div class='is_fixed'>{% trans "This problem has been fixed." %}</div>
		{% endif %}

		<div id='report-body'>
            
		<!-- ################ -->
		<!-- SUBSCRIBER BLOCK -->
		<!-- ################ -->
		<div id='report-subscribers'>
                	{% trans "Subscribers:" %} <b>{{report.subscriptions.count}}</b><br/>
                	{% if not report.is_closed and not subscribed %}
                        <form action="{% url subscribe report.id %}">
                            <p class="required"><input type="text" value="" placeholder="Your Email" name="citizen_email" /></p>
                            <input type="submit" value="{% trans "Subscribe" %}" />
                        </form>
                	{% endif %}
            	</div>

			<p>{{report.description|linebreaks}}</p>

		<!-- ################### -->
		<!-- REPORT CREATOR ZONE -->
		<!-- ################### -->
		<p class="author-sign">
                {% blocktrans with by=author.get_full_name on=report.created|date %}
                	Posted by <strong>{{by}}</strong> on <strong>{{on}}</strong>
                {% endblocktrans %}
            </p>


	<!-- ################## -->
	<!-- REPORT STATUS ZONE -->
	<!-- ################## -->
            <table id='report-status'>			
                <tr>
                    <th>{% trans "Location:" %}</th>
                    <td>{{report.address}} ({{report.postalcode}} {{report.ward.name}})</td>
                </tr>
                <tr>
                    <th>{% trans "Category:" %}</th>
                    <td>{{report.category.name}} / {{report.secondary_category.name}}</td>
                </tr>
            </table>


	    <!-- ################# FILES ############### -->
	    <!-- ################# FILES ############### -->
	    <!-- ################# FILES ############### -->
	    {% if report.get_files %}
            <h3>{% trans "Extra files" %}</h3>
            <div id="report_updates">
                <table id="extraFilesTable">
                    {% for file in report.get_files %}
		    {% if file.validated %} <!-- PUBLIC? -->
                    <tr>
                        <td class="annexesFirstTD">
                    <div class="report_update">
                        {% if file.file %}
                                <center>
                                        <!--img style="max-width:390px;max-heigth:390px" src='{{ file.file.url }}'/-->
                                        {{file.title}}
                                        {% if file.is_image %}
                                                <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-jpeg.png' width="48px" height="48px"/></a>
                                        {% endif %}
                                        {% if file.is_pdf %}
                                                <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-pdf.png' width="48px" height="48px"/></a>
                                        {% endif %}
                                        {% if file.is_word %}
       <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-doc.png' width="48px" height="48px"/></a>
                                        {% endif %}
                                        {% if file.is_excel %}
                                                <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-png.png' width="48px" height="48px"/> </a>
                                        {% endif %}
                                </center>
                        {% endif %}
                    </div>
                </td>
		</tr>
		{% endif %}
		{% endfor %}
		</table>
	</div>
	{% endif %}





	    <!-- ################# COMMENTS ############### -->
	    <!-- ################# COMMENTS ############### -->
	    <!-- ################# COMMENTS ############### -->
	    {% if report.get_comments %}
            <h3>{% trans "Extra comments" %}</h3>
            <div id="report_updates">
                <table class="extraCommentsTable">
                {% for comment in report.get_comments %}
		{% if comment.validated %} 
                	<tr><commit_msg>User story 368. Did not show validated files. show.html was using the method validated, while after refactoring the method is_validated is required.<commit_after>{% extends "base.html" %}
{% load i18n tags %}
{% block title %}{{report.secondary_category.name}} {{report.secondary_category.secondary_category_class.name.lower}} {{report.category.name.lower}} {% trans 'in' %} {{report.responsible_entity.name}}{% endblock %}

{% block script %}
{{ block.super }}


<meta property="og:title" content="{{report.secondary_category.name}} {{report.secondary_category.secondary_category_class.name.lower}} {{report.category.name.lower}} {% trans 'in' %} {{report.responsible_entity.name}}" />
<meta property="og:description" content="{% trans 'Signalez tout type d incident :' %} {{report.secondary_category.name.lower}} {{report.secondary_category.secondary_category_class.name.lower}} {{report.category.name.lower}} {% trans 'in' %} {{report.responsible_entity.name}} {% trans 'sur FixMyStreet qui identifiera alors le service public en charge de le traiter. '%}" />
{% addthis_scripts %}
{% map_scripts %}

<script src="{{ STATIC_URL }}js/attachmentForms.js"></script>
<script>
/******************************/
/* QUERY READY INITIALIZATION */
/******************************/
$(function(){
	$('#map-bxl').fmsMap({ 
		origin:{
			x:{{ report.point.x }},
			y:{{ report.point.y }} 
		}
	});
	$('#map-bxl').fmsMap('addReport', {% report_to_json report %});
});

</script>
{% endblock %}
{% block css %}

{{block.super}}

<!-- ##################### -->
<!-- # SPECIFIC CSS ZONE # -->
<!-- ##################### -->

<style type="text/css" media="screen">
    #update-header {
        float: left;
        width: 100%;
    }
    
    #update-title {
        float: left;
        width: 48%;
    }
    
    #update-email-me {
        float: right;
        width: 48%;
        text-align: right;
        margin-top: 4px;
    }
</style>
{% endblock %}
{% block content %}

<!-- ######################### -->
<!-- # MAIN CONTENT DEFINITION -->
<!-- ######################### -->
<div id="page_content_container">

{% block pageHeader %}
<h1>
    <!-- ########################### -->
    <!-- # DISPLAY REPORT CATEGORY # -->
    <!-- ########################### -->
        {{report.secondary_category.name}}
 	<div style="float:right;margin-top:-23px">
        	<table class="reportActionButtons">
			<tr>
				<td>
					<button onclick="window.location = '{% url report_pdf report.id 0 %}'" class="saveFormButton" style="font-size: 0.4em;margin-top: 0px;width:100%;">{% trans 'report pdf public' %}</button>
				</td>
				{% if report.is_in_progress %}
				<td>
					<button onclick="window.location = '{% url report_update report.id %}?is_fixed=True'" class="saveFormButton" style="font-size: 0.4em;margin-top: 0px;width:100%;">{% trans 'Mark as done' %}</button>
				</td>
				{% endif %}
			</tr>
		</table>
	</div>
</h1>
    {% endblock %}

	<div id="leftcol">    
		<!-- ######### -->
		<!-- IS FIXED  -->
		<!-- ######### -->
		{% if report.is_fixed %}
			<div class='is_fixed'>{% trans "This problem has been fixed." %}</div>
		{% endif %}

		<div id='report-body'>
            
		<!-- ################ -->
		<!-- SUBSCRIBER BLOCK -->
		<!-- ################ -->
		<div id='report-subscribers'>
                	{% trans "Subscribers:" %} <b>{{report.subscriptions.count}}</b><br/>
                	{% if not report.is_closed and not subscribed %}
                        <form action="{% url subscribe report.id %}">
                            <p class="required"><input type="text" value="" placeholder="Your Email" name="citizen_email" /></p>
                            <input type="submit" value="{% trans "Subscribe" %}" />
                        </form>
                	{% endif %}
            	</div>

			<p>{{report.description|linebreaks}}</p>

		<!-- ################### -->
		<!-- REPORT CREATOR ZONE -->
		<!-- ################### -->
		<p class="author-sign">
                {% blocktrans with by=author.get_full_name on=report.created|date %}
                	Posted by <strong>{{by}}</strong> on <strong>{{on}}</strong>
                {% endblocktrans %}
            </p>


	<!-- ################## -->
	<!-- REPORT STATUS ZONE -->
	<!-- ################## -->
            <table id='report-status'>			
                <tr>
                    <th>{% trans "Location:" %}</th>
                    <td>{{report.address}} ({{report.postalcode}} {{report.ward.name}})</td>
                </tr>
                <tr>
                    <th>{% trans "Category:" %}</th>
                    <td>{{report.category.name}} / {{report.secondary_category.name}}</td>
                </tr>
            </table>


	    <!-- ################# FILES ############### -->
	    <!-- ################# FILES ############### -->
	    <!-- ################# FILES ############### -->
	    {% if report.get_files %}
            <h3>{% trans "Extra files" %}</h3>
            <div id="report_updates">
                <table id="extraFilesTable">
                    {% for file in report.get_files %}
		    {% if file.is_validated %} <!-- PUBLIC? -->
                    <tr>
                        <td class="annexesFirstTD">
                    <div class="report_update">
                        {% if file.file %}
                                <center>
                                        <!--img style="max-width:390px;max-heigth:390px" src='{{ file.file.url }}'/-->
                                        {{file.title}}
                                        {% if file.is_image %}
                                                <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-jpeg.png' width="48px" height="48px"/></a>
                                        {% endif %}
                                        {% if file.is_pdf %}
                                                <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-pdf.png' width="48px" height="48px"/></a>
                                        {% endif %}
                                        {% if file.is_word %}
       <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-doc.png' width="48px" height="48px"/></a>
                                        {% endif %}
                                        {% if file.is_excel %}
                                                <a href="{{ file.file.url }}" ><img style="max-width:390px;max-heigth:390px" src='/static/images/icon-png.png' width="48px" height="48px"/> </a>
                                        {% endif %}
                                </center>
                        {% endif %}
                    </div>
                </td>
		</tr>
		{% endif %}
		{% endfor %}
		</table>
	</div>
	{% endif %}





	    <!-- ################# COMMENTS ############### -->
	    <!-- ################# COMMENTS ############### -->
	    <!-- ################# COMMENTS ############### -->
	    {% if report.get_comments %}
            <h3>{% trans "Extra comments" %}</h3>
            <div id="report_updates">
                <table class="extraCommentsTable">
                {% for comment in report.get_comments %}
		{% if comment.is_validated %} 
                	<tr>
{'fraction_non_alphanumeric': 0.24768883106211054, 'fraction_numerical': 0.010751215503663631, 'mean_word_length': 1.882747729964469, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 247, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '12149', 'n_tokens_mistral': 4644, 'n_tokens_neox': 4044, 'n_words': 760}