<commit_before>{# src/Lotofootv2/Bundle/Resources/views/Hello/index.html.twig #}
{% extends 'Lotofootv2Bundle::layout.html.twig' %}


{% block navibar %}
	{% include 'Lotofootv2Bundle::navibar.html.twig' %}
{% endblock %}

{% block menu %}
	{% include 'Lotofootv2Bundle::menu.html.twig' %}
{% endblock %}

{% block title_body %}
	<img style="padding-bottom:15px" src="{{ asset('bundles/lotofootv2/img/anim1.gif') }}"/>
	<div class="title-body">
		{% if news is not null%}
			<a class="prev" href="{{ path('_home_prev_news')~'?number='~news.number}}" title="Info précédente"><img src="{{ asset('bundles/lotofootv2/img/prev.png') }}"/></a>
		{% endif %}
		
		<div class="ligne-body-left">&nbsp;</div>
		{% if news is not null%}
			{{news.title}}
		{% else %}
			{{ 'home.welcome' | trans }}
		{% endif %}
		
		{% if news is not null%}
		<a class="next" href="{{ path('_home_next_news')~'?number='~news.number}}" title="Info suivante"><img src="{{ asset('bundles/lotofootv2/img/next.png') }}"/></a>
		{% endif %}
		<div class="ligne-body-right">&nbsp;</div>
	</div>
	
{% endblock %}
	
{% block body %}
	
	{% if news is not null%}
		{{ news.date|date("d/m/Y") }}
		{% autoescape false %}
			{{news.text}}
		{% endautoescape %}
	{% else %}
		 {{ 'home.nonews' | trans }}
	{% endif %}
	
	<br/>
	<div class="top-comment">
		<div class="titre-comment">
		<img src="{{ asset('bundles/lotofootv2/img/titre-comment.png') }}"/>
		</div>
	</div>
	<form action="{{ path('_home_news_postcomm') }}" method="POST">
       <textarea class="champs-comment" rows="3" name="text"></textarea>
       <input class="btn-comment" type="submit" value="Ajouter"></input>
    </form>
    
	<div class="stop-float"><br/></div>
	{% if comms is defined and comms is not null %}
	   {% for comm in comms %}
		   
		   <div class="comment{{(loop.index%2+1)}}">
		      <span class="auteur-comment">{{comm.author}}({{app.request.get('acc_'~comm.author)}})</span> - <span class="date-comment">le {{comm.date | date("d/m/Y à H:i")}}</span><br/>
		      {{comm.text|replace({"\\'" : "'"})}}
		   </div><commit_msg>News textarea maxlength<commit_after>{# src/Lotofootv2/Bundle/Resources/views/Hello/index.html.twig #}
{% extends 'Lotofootv2Bundle::layout.html.twig' %}


{% block navibar %}
	{% include 'Lotofootv2Bundle::navibar.html.twig' %}
{% endblock %}

{% block menu %}
	{% include 'Lotofootv2Bundle::menu.html.twig' %}
{% endblock %}

{% block title_body %}
	<img style="padding-bottom:15px" src="{{ asset('bundles/lotofootv2/img/anim1.gif') }}"/>
	<div class="title-body">
		{% if news is not null%}
			<a class="prev" href="{{ path('_home_prev_news')~'?number='~news.number}}" title="Info précédente"><img src="{{ asset('bundles/lotofootv2/img/prev.png') }}"/></a>
		{% endif %}
		
		<div class="ligne-body-left">&nbsp;</div>
		{% if news is not null%}
			{{news.title}}
		{% else %}
			{{ 'home.welcome' | trans }}
		{% endif %}
		
		{% if news is not null%}
		<a class="next" href="{{ path('_home_next_news')~'?number='~news.number}}" title="Info suivante"><img src="{{ asset('bundles/lotofootv2/img/next.png') }}"/></a>
		{% endif %}
		<div class="ligne-body-right">&nbsp;</div>
	</div>
	
{% endblock %}
	
{% block body %}
	
	{% if news is not null%}
		{{ news.date|date("d/m/Y") }}
		{% autoescape false %}
			{{news.text}}
		{% endautoescape %}
	{% else %}
		 {{ 'home.nonews' | trans }}
	{% endif %}
	
	<br/>
	<div class="top-comment">
		<div class="titre-comment">
		<img src="{{ asset('bundles/lotofootv2/img/titre-comment.png') }}"/>
		</div>
	</div>
	<form action="{{ path('_home_news_postcomm') }}" method="POST">
       <textarea class="champs-comment" rows="3" name="text" maxlength="512"></textarea>
       <input class="btn-comment" type="submit" value="Ajouter"></input>
    </form>
    
	<div class="stop-float"><br/></div>
	{% if comms is defined and comms is not null %}
	   {% for comm in comms %}
		   
		   <div class="comment{{(loop.index%2+1)}}">
		      <span class="auteur-comment">{{comm.author}}({{app.request.get('acc_'~comm.author)}})</span> - <span class="date-comment">le {{comm.date | date("d/m/Y à H:i")}}</span><br/>
		      {{comm.text|replace({"\\'" : "'"})}}
		   </div>
{'fraction_non_alphanumeric': 0.2437799043062201, 'fraction_numerical': 0.007416267942583732, 'mean_word_length': 3.9892601431980905, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '6271906', 'n_tokens_mistral': 1747, 'n_tokens_neox': 1552, 'n_words': 270}