<commit_before>{% trans_default_domain "victoire" %}

{% if blog.articles|length %}

<a class="vic-btn vic-btn-success" data-toggle="vic-modal" href="{{ path('victoire_blog_article_new', {'id' : blog.id}) }}">
    {{'modal.blog.list.articlesList.new_article'|trans({}, 'victoire')|raw}}
</a>

<div id="vic-blog-articleList">
{% for article in blog.articles if not article.deletedAt %}
    {% for translation in article.translations %}
        {% if translation.locale == locale %}
            {% set articleUrl = path('victoire_core_business_page_show_by_id', {
            'entityId' : article.id,
            'type'      : 'article',
            '_locale' : locale,
            'viewId': article.template.id
            }) %}
            {% set name = translation.name %}
        <div>
            <div class="vic-panel vic-shadow-plan1 -vicBlog">


                <div class="vic-panelBlog-image" {% if article.image %}style="background-image: url({{ article.image.url }});"{% endif %}>
                    <a class="vic-panelBlog-title" href="{{ articleUrl }}">
                        <span class="vic-panelBlog-badge -{{ article.status }}">
                            <span class="vic-panelBlog-badge-popover">
                                {% set transKey = 'modal.blog.list.articlesList.status.' ~ article.status %}
                                {{ transKey |trans }}
                            </span>
                        </span>
                    </a>
                </div>

                <div class="vic-panelBlog-body vic-text-center">
                    <a class="vic-panelBlog-title" href="{{articleUrl}}">
                        {{ name }}
                    </a>

                    {% if article.author is not null %}
                        <em>{{ article.author.firstname }} {{ article.author.lastname }}</em>
                    {% endif %}

                    <time datetime="{{ article.publishedAt|date("Y-m-d") }}" class="vic-panelBlog-date">{{ article.publishedAt|localizeddate("medium", "none", locale, null, "cccc d LLLL yyyy") }}</time>

                    <a class="vic-btn vic-btn-sm vic-btn-default" href="{{ path('victoire_blog_article_settings', {'id' : article.id}) }}" data-toggle="vic-modal">{{'modal.blog.list.articlesList.change.parameters'|trans({}, 'victoire')}}</a>
                </div>
            </div>
        </div>
        {% endif %}<commit_msg>Allow author with just lastname or firstname to be display<commit_after>{% trans_default_domain "victoire" %}

{% if blog.articles|length %}

<a class="vic-btn vic-btn-success" data-toggle="vic-modal" href="{{ path('victoire_blog_article_new', {'id' : blog.id}) }}">
    {{'modal.blog.list.articlesList.new_article'|trans({}, 'victoire')|raw}}
</a>

<div id="vic-blog-articleList">
{% for article in blog.articles if not article.deletedAt %}
    {% for translation in article.translations %}
        {% if translation.locale == locale %}
            {% set articleUrl = path('victoire_core_business_page_show_by_id', {
            'entityId' : article.id,
            'type'      : 'article',
            '_locale' : locale,
            'viewId': article.template.id
            }) %}
            {% set name = translation.name %}
        <div>
            <div class="vic-panel vic-shadow-plan1 -vicBlog">


                <div class="vic-panelBlog-image" {% if article.image %}style="background-image: url({{ article.image.url }});"{% endif %}>
                    <a class="vic-panelBlog-title" href="{{ articleUrl }}">
                        <span class="vic-panelBlog-badge -{{ article.status }}">
                            <span class="vic-panelBlog-badge-popover">
                                {% set transKey = 'modal.blog.list.articlesList.status.' ~ article.status %}
                                {{ transKey |trans }}
                            </span>
                        </span>
                    </a>
                </div>

                <div class="vic-panelBlog-body vic-text-center">
                    <a class="vic-panelBlog-title" href="{{articleUrl}}">
                        {{ name }}
                    </a>

                    {% if article.author is not null %}
                        <em>{{ article.author }}</em>
                    {% endif %}

                    <time datetime="{{ article.publishedAt|date("Y-m-d") }}" class="vic-panelBlog-date">{{ article.publishedAt|localizeddate("medium", "none", locale, null, "cccc d LLLL yyyy") }}</time>

                    <a class="vic-btn vic-btn-sm vic-btn-default" href="{{ path('victoire_blog_article_settings', {'id' : article.id}) }}" data-toggle="vic-modal">{{'modal.blog.list.articlesList.change.parameters'|trans({}, 'victoire')}}</a>
                </div>
            </div>
        </div>
        {% endif %}
{'fraction_non_alphanumeric': 0.16601199090345256, 'fraction_numerical': 0.0004134794293983874, 'mean_word_length': 1.8062645011600929, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2652043', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1316, 'n_words': 254}