<commit_before>{# src/Clc/UserBundle/Resources/views/profile/profile.html.twig #}

{# Variables disponibles dans cette page (entre parenthèses les attributs des variables) :
    - 'path'  string donnant le chemin de la profile picture de l'utilisateur actif
#}

{% extends "::base.html.twig" %}

{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('css/user-profile.css') }}" type="text/css" />
{% endblock %}

{% block title %}
  {{ parent() }} - Profile
{% endblock %}

{% block body %}
     
    <div id="profile-page-content">
        <div class="profile-container">
	    <section id="profile-content">
                
                {% block init %}
                {% endblock %}
                
                {% block nickname %}
                <h1>{{ app.user.nickname }}</h1>
                {% endblock %}
                
                {% block picture %}
                <div id="profile-picture">
                    <img src="{{ asset(app.user.picture.path) }}" class="img-polaroid" margin="auto" alt="">
                </div>
                {% endblock %}

                <div>
                    <div class="details">
                        <i class="icon-user"></i> 
                        <p id="static-details">Name</p>
                        <p>{% block firstname %}{{ app.user.firstname }}{% endblock %}
                           {% block lastname %}{{ app.user.lastname }}{% endblock %}
                        </p> 
                    </div>
                    <div class="details">             
                        <i class="icon-globe"></i>
                        <p id="static-details">Nationality</p>
                        <p>{% block nationality %}
                           {{ app.user.nationality }}
                           {% endblock %}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-gift"></i>
                        <p id="static-details">Birth Date</p>
                        <p>{% block birthday %}
                           {{ app.user.birthday|date("d/m/y") }}
                           {% endblock %}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-comment"></i>
                        <p id="static-details">Phone</p>
                        <p>{% block phone %}
                           {{ app.user.phone }}
                           {% endblock %}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-envelope"></i>
                        <p id="static-details">E-mail</p>
                        <p>
                           {{ app.user.email }}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-heart"></i>
                        <p id="static-details">Passions</p>
                        <p>{% block comment %}
                           {{ app.user.comment }}
                           {% endblock %}
                        </p>
                    </div>
                        
                    {% block other %}<commit_msg>Profile display<commit_after>{# src/Clc/UserBundle/Resources/views/profile/profile.html.twig #}

{# Variables disponibles dans cette page (entre parenthèses les attributs des variables) :
    - 'path'  string donnant le chemin de la profile picture de l'utilisateur actif
#}

{% extends "::base.html.twig" %}

{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('css/user-profile.css') }}" type="text/css" />
{% endblock %}

{% block title %}
  {{ parent() }} - Profile
{% endblock %}

{% block body %}
     
    <div id="profile-page-content">
        <div class="profile-container">
	    <section id="profile-content">
                
                {% block init %}
                {% endblock %}
                
                {% block nickname %}
                <h1>{{ app.user.nickname }}</h1>
                {% endblock %}
                
                {% block picture %}
                <div id="profile-picture">
                    <img src="{{ asset(app.user.picture.path) }}" class="img-polaroid" margin="auto" alt="">
                </div>
                {% endblock %}

                <div>
                    <div class="details">
                        <i class="icon-user"></i> 
                        <p id="static-details">Name</p>
                        <p>{% block firstname%}
                               {% if app.user.firstname == null %} ... 
                               {% else %} {{ app.user.firstname }} 
                               {% endif %}
                           {% endblock %}
                        {% block lastname %}{{ app.user.lastname }}{% endblock %}
                        </p> 
                    </div>
                    <div class="details">             
                        <i class="icon-globe"></i>
                        <p id="static-details">Nationality</p>
                        <p>{% block nationality %}
                               {% if app.user.nationality == null %} ... 
                               {% else %} {{ app.user.nationality }} 
                               {% endif %}
                           {% endblock %}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-gift"></i>
                        <p id="static-details">Birth Date</p>
                        <p>{% block birthday %}
                                {% if app.user.birthday == null %} ...
                                {% else %} {{ app.user.birthday|date("d/m/y") }}
                                {% endif %}
                           {% endblock %}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-comment"></i>
                        <p id="static-details">Phone</p>
                        <p>{% block phone %}
                                {% if app.user.phone == null %} ...
                                {% else %} {{ app.user.phone }}
                                {% endif %}
                           {% endblock %}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-envelope"></i>
                        <p id="static-details">E-mail</p>
                        <p>
                           {{ app.user.email }}
                        </p>
                    </div>
                    <div class="details">
                        <i class="icon-heart"></i>
                        <p id="static-details">Passions</p>
                        <p>{% block comment %}
                                {% if app.user.comment == null %} ...
                                {% else %} {{ app.user.comment }}
                                {% endif %}
                           {% endblock %}
                        </p>
                    </div>
                        
                    {% block other %}
{'fraction_non_alphanumeric': 0.14183911196382074, 'fraction_numerical': 0.000548170481019597, 'mean_word_length': 0.8622097473845368, 'pattern_counts': {'":': 2, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5215566', 'n_tokens_mistral': 1920, 'n_tokens_neox': 1663, 'n_words': 332}