<commit_before>{% extends 'MeowBundle::layout.html.twig' %}

{% block bodyClass %}id="profile"{% endblock %}

{% block content %}



<section class="profile">


    <div class="detail-profil">

        <figure>
            <img src="	{% if app.user.cover is not empty %}
												{{ asset('_assets/imgs/users/' ~ app.user.cover) }}
											{% else %}								
												{{ asset('_assets/imgs/users/profil-default.jpg') }}
											{% endif %}" alt="Profil de {{ app.user.username }}"/>
							


       	 	<input type="file" name="img" value="Modifier">
        </figure>
       
       <ul>
       	  	<li data-icon="1">{{ user.username }}</li>
     	  	<li>{{ user.email }}</li>
     	  	<li>Score : {% set score = 0 %}
				{% for spoil in pagination %}
				{% set score = score + spoil.nbSpoil %}
				{% endfor %}
				{{ score }}
		  	</li>
		  	
		  	<li>Changer de mot de passe     
			
				<div>
					<label for="username">
					  	<input type="password" placeholder="<PASSWORD>" required="required" name="" id="">
					</label>
				    <label for="password">
					   	<input type="password" placeholder="<PASSWORD>" required="required" name="" id="">
					</label>
				    <input type="submit" name="_submit" id="_submit" value="Valider">
			     </div>
			</li>
	    </ul>

    </div>	<!-- END DETAIL PROFIL -->

		
			
			
    <ul id="Container">	 

    {% if pagination is not empty %}
    <div class="cd-gallery">
    	<h2>Spoils postés</h2>
    	<ul id="Container">
 
    {% for spoil in pagination %}
         
            <li class="">
			  	<a href="{{ urlBase }}spoil/{{ spoil.slug }}">
				  	<figure>
						<div class="bloc-image">
						   <img src="{{ asset('_assets/imgs/spoils/' ~ spoil.cover) }}" alt="{{ spoil.title }}">
						</div>
					   <figcaption>
					     <p class="titre-manga">{{ spoil.manga.name|title }}</p>
							<div class="infos-spoils">
							  <p class="nb-spoil" data-icon="8">{{ spoil.nbSpoil }}</p>
							  <p class="nb-commentaire" data-icon="x">{{ spoil.nbComments }}</p>
							</div><commit_msg>profile - modif si notre compte<commit_after>{% extends 'MeowBundle::layout.html.twig' %}

{% block bodyClass %}id="profile"{% endblock %}

{% block content %}



<section class="profile">


    <div class="detail-profil">

        <figure>
            <img src="	{% if user.cover is not empty %}
												{{ asset('_assets/imgs/users/' ~ user.cover) }}
											{% else %}								
												{{ asset('_assets/imgs/users/profil-default.jpg') }}
											{% endif %}" alt="Profil de {{ user.username }}"/>
							


       	 	{% if is_granted("IS_AUTHENTICATED_REMEMBERED") and app.user.id == user.id %}
       	 	<input type="file" name="img" value="Modifier">
       	 	{% endif %}
        </figure>
       
       <ul>
       	  	<li data-icon="1">{{ user.username }}</li>
     	  	<li>{{ user.email }}</li>
     	  	<li>Score : {% set score = 0 %}
				{% for spoil in pagination %}
				{% set score = score + spoil.nbSpoil %}
				{% endfor %}
				{{ score }}
		  	</li>
		  	
		  	{% if is_granted("IS_AUTHENTICATED_REMEMBERED") and app.user.id == user.id %}
		  	<li>Changer de mot de passe     
			
				<div>
					<label for="username">
					  	<input type="password" placeholder="<PASSWORD>" required="required" name="" id="">
					</label>
				    <label for="password">
					   	<input type="password" placeholder="<PASSWORD>" required="required" name="" id="">
					</label>
				    <input type="submit" name="_submit" id="_submit" value="Valider">
			     </div>
			</li>
			{% endif %}
	    </ul>

    </div>	<!-- END DETAIL PROFIL -->

		
			
			
    <ul id="Container">	 

    {% if pagination is not empty %}
    <div class="cd-gallery">
    	<h2>Spoils postés</h2>
    	<ul id="Container">
 
    {% for spoil in pagination %}
         
            <li class="">
			  	<a href="{{ urlBase }}spoil/{{ spoil.slug }}">
				  	<figure>
						<div class="bloc-image">
						   <img src="{{ asset('_assets/imgs/spoils/' ~ spoil.cover) }}" alt="{{ spoil.title }}">
						</div>
					   <figcaption>
					     <p class="titre-manga">{{ spoil.manga.name|title }}</p>
							<div class="infos-spoils">
							  <p class="nb-spoil" data-icon="8">{{ spoil.nbSpoil }}</p>
							  <p class="nb-commentaire" data-icon="x">{{ spoil.nbComments }}</p>
							</div>
{'fraction_non_alphanumeric': 0.1954713493530499, 'fraction_numerical': 0.0023105360443622922, 'mean_word_length': 2.1010028653295127, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '4226733', 'n_tokens_mistral': 1920, 'n_tokens_neox': 1437, 'n_words': 305}