<commit_before>{#

/*
 * This file is part of the Sonata package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

#}

{% sonata_template_box 'This is the post template. Feel free to override it.' %}

{% block sonata_page_breadcrumb %}
    <div class="row-fluid clearfix">
        {{ sonata_block_render_event('breadcrumb', { 'context': 'news_post', 'post': post, 'current_uri': app.request.requestUri }) }}
    </div>
{% endblock %}

<article class="sonata-blog-post-container">
    <header>
        <div class="sonata-blog-post-date-container">
            <h5>
                <i class="icon-calendar"></i>
                {{ post.publicationDateStart | format_date }}
            </h5>
        </div>

        <h1 class="sonata-blog-post-title">
            <a href="{{ url('sonata_news_view', { 'permalink': sonata_news_permalink(post) }) }}">{{ post.title }}</a>
            <span class="sonata-blog-post-author">{{ 'archive_author'|trans({'%author%': post.author }, 'SonataNewsBundle') }}</span>
        </h1>

        <div class="sonata-blog-post-information">
            <div class="sonata-blog-post-tag-container">
                <div class="sonata-blog-post-tag-title">
                    {% if post.tags|length > 1 %}
                        <i class="icon-tags"></i>
                    {% else %}
                        <i class="icon-tag"></i>
                    {% endif %}
                    {{ 'published_under'|transchoice(post.tags|length, {}, 'SonataNewsBundle') }}
                </div>
                <div class="sonata-blog-post-tag-list">
                    {% for tag in post.tags %}
                        <a href="{{ url('sonata_news_tag', { 'tag': tag.slug } ) }}">{{ tag.name }}</a>
                    {% endfor %}
                </div>
            </div>
        </div>
    </header>

    <div class="sonata-blog-post-content">
        {% media post.image, 'wide' %}
        {{ post.content|raw }}
    </div>

    {% render(controller('SonataNewsBundle:Post:comments', {'postId': post.id})) %}

    {% if post.iscommentable %}
        {% render(controller('SonataNewsBundle:Post:addCommentForm', {
            'postId': post.id,
            'form': form
        })) %}
    {% else %}
        <div>
            {{ 'message_comments_are_closed'|trans({}, 'SonataNewsBundle') }}
        </div>
    {% endif %}
</article><commit_msg>Modification du template affichage d'un post - date d'ajout<commit_after>{#

/*
 * This file is part of the Sonata package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

#}

{% sonata_template_box 'This is the post template. Feel free to override it.' %}

{% block sonata_page_breadcrumb %}
    <div class="row-fluid clearfix">
        {{ sonata_block_render_event('breadcrumb', { 'context': 'news_post', 'post': post, 'current_uri': app.request.requestUri }) }}
    </div>
{% endblock %}

<div class="col-md-12">

	<hr>
    <header>
        <div class="sonata-blog-post-date-container">
            <h5>
                <i class="fa fa-clock-o"></i>
                Posté le {{ post.publicationDateStart | format_date }}
            </h5>
        </div>
	<hr>
        <h1 class="sonata-blog-post-title">
            <a href="{{ url('sonata_news_view', { 'permalink': sonata_news_permalink(post) }) }}">{{ post.title }}</a>
            <span class="sonata-blog-post-author">{{ 'archive_author'|trans({'%author%': post.author }, 'SonataNewsBundle') }}</span>
        </h1>
		<!-- Pas de prise en compte des tags pour le moment -->
       <!--  <div class="sonata-blog-post-information">
            <div class="sonata-blog-post-tag-container">
                <div class="sonata-blog-post-tag-title">
                    {% if post.tags|length > 1 %}
                        <i class="icon-tags"></i>
                    {% else %}
                        <i class="icon-tag"></i>
                    {% endif %}
                    {{ 'published_under'|transchoice(post.tags|length, {}, 'SonataNewsBundle') }}
                </div>
                <div class="sonata-blog-post-tag-list">
                    {% for tag in post.tags %}
                        <a href="{{ url('sonata_news_tag', { 'tag': tag.slug } ) }}">{{ tag.name }}</a>
                    {% endfor %}
                </div>
            </div>
        </div> -->
    </header>

    <div class="sonata-blog-post-content">
        {% media post.image, 'wide' with {'class' : 'img-responsive img-hover'} %}
        {{ post.content|raw }}
    </div>

    {% render(controller('SonataNewsBundle:Post:comments', {'postId': post.id})) %}

    {% if post.iscommentable %}
        {% render(controller('SonataNewsBundle:Post:addCommentForm', {
            'postId': post.id,
            'form': form
        })) %}
    {% else %}
        <div>
            {{ 'message_comments_are_closed'|trans({}, 'SonataNewsBundle') }}
        </div>
    {% endif %}
</div>
{'fraction_non_alphanumeric': 0.17415072237407261, 'fraction_numerical': 0.0023428348301444747, 'mean_word_length': 1.9802210587550901, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '5934211', 'n_tokens_mistral': 1648, 'n_tokens_neox': 1532, 'n_words': 313}