<commit_before>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.home'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}

    {% stylesheets "@bxslider_css" output="assets/prod/js/bxslider.css" %}
    <link rel="stylesheet" href="{{ asset_url }}">
    {% endstylesheets %}
{% endblock %}
{% block body %}
    <div class="container">
        <section role="presentation">
            <div class="row">
                <div class="col-md-12 text-center">
                    <a href="{{ path("ojs_public_index") }}"><img id="logo" src="{{ ojs_logo }}"/></a>
                </div>
            </div>
        </section>
        <section role="search" id="search_section">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <form action="{{ path('ojs_search_index') }}" method="get">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" value=""
                                   placeholder="{{ "search.on.everywhere" | trans({'%project_name%' : project_name}) }}"
                                   id="q"/>
                            <span class="input-group-btn">
                                        <button class="btn btn-primary" type="submit" title="{{ "search"|trans }}"><i
                                                    class="fa fa-search"></i></button>
                                    </span>
                        </div>
                        <input type="hidden" name="type" value="basic" id="search-type">
                    </form>
                    <div id="stats">
                        <dl class="home-stats">
                            <dd>
                                <span>{{ stats.journal|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "journal"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.article|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "article"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.user|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "user"|trans }}
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
        </section>
        <section role="actions">
            <div class="row">
                <div class="col-md-12 col-xs-12">
                    <p id="homepage-buttons" class="text-center">
                        {% if not app.user %}
                            {% if app.request.attributes.get('_system_setting').userRegistrationActive %}
                                <a href="{{ path('fos_user_registration_register') }}"
                                   class="btn btn-primary btn-labeled">
                                        <span class="btn-label pull-left">
                                            <i class="fa fa-user fa-fw"></i>
                                        </span>
                                    {{ "register"|trans }}
                                </a>
                            {% endif %}
                        {% else %}
                            <a href="{{ path('fos_user_security_login') }}"
                               class="btn btn-primary btn-labeled">
                                    <span class="btn-label pull-left">
                                        <i class="fa fa-user fa-fw"></i>
                                    </span>
                                {{ "login"|trans }}
                            </a>
                        {% endif %}

                        {% if app.request.attributes.get('_system_setting').publisherApplicationActive %}<commit_msg>if user is logged removed login button from homepage, related #1531<commit_after>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.home'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}

    {% stylesheets "@bxslider_css" output="assets/prod/js/bxslider.css" %}
    <link rel="stylesheet" href="{{ asset_url }}">
    {% endstylesheets %}
{% endblock %}
{% block body %}
    <div class="container">
        <section role="presentation">
            <div class="row">
                <div class="col-md-12 text-center">
                    <a href="{{ path("ojs_public_index") }}"><img id="logo" src="{{ ojs_logo }}"/></a>
                </div>
            </div>
        </section>
        <section role="search" id="search_section">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <form action="{{ path('ojs_search_index') }}" method="get">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" value=""
                                   placeholder="{{ "search.on.everywhere" | trans({'%project_name%' : project_name}) }}"
                                   id="q"/>
                            <span class="input-group-btn">
                                        <button class="btn btn-primary" type="submit" title="{{ "search"|trans }}"><i
                                                    class="fa fa-search"></i></button>
                                    </span>
                        </div>
                        <input type="hidden" name="type" value="basic" id="search-type">
                    </form>
                    <div id="stats">
                        <dl class="home-stats">
                            <dd>
                                <span>{{ stats.journal|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "journal"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.article|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "article"|trans }}
                            </dd>
                            <dd>
                                <span>{{ stats.user|number_format(0,'.','.') }}</span>
                                <br>
                                {{ "user"|trans }}
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
        </section>
        <section role="actions">
            <div class="row">
                <div class="col-md-12 col-xs-12">
                    <p id="homepage-buttons" class="text-center">
                        {% if not app.user %}
                            {% if app.request.attributes.get('_system_setting').userRegistrationActive %}
                                <a href="{{ path('fos_user_registration_register') }}"
                                   class="btn btn-primary btn-labeled">
                                        <span class="btn-label pull-left">
                                            <i class="fa fa-user fa-fw"></i>
                                        </span>
                                    {{ "register"|trans }}
                                </a>
                            {% endif %}
                        {% endif %}

                        {% if app.request.attributes.get('_system_setting').publisherApplicationActive %}
{'fraction_non_alphanumeric': 0.14822546972860126, 'fraction_numerical': 0.0036534446764091857, 'mean_word_length': 0.9498855253116255, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 37, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5708954', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1735, 'n_words': 333}