<commit_before>{% extends 'VictoireCoreBundle:Layout:layout.html.twig' %}
{% trans_default_domain "victoire" %}
{% block meta %}<title>Backend</title>{% endblock meta %}
{% block container_attributes %}{{ parent() }} role="victoire-backend"{% endblock container_attributes %}
{% block container_class %}{% endblock container_class %}

{% block body %}
    {% if is_granted('ROLE_VICTOIRE') %}
        {% include 'VictoireCoreBundle:Menu:admin_navbar.html.twig' %}
    {% endif %}
    <div class="vic-container">
        <h1>{% block header_title %}{% endblock header_title %}</h1>
        {% block content %}{% endblock content %}
    </div>
{% endblock body %}

{% block foot_script %}
    <!-- backend layout foot_script -->
    <!-- FOOT_SCRIPT -->
    {% if view is defined %}
        <script type="text/javascript">
            var viewReferenceId = '{{ vic_current_page_reference() }}';
        </script>
        {{ render_hinclude(controller('VictoireAnalyticsBundle:BrowseEvent:track', {'viewReferenceId': view.reference.id, 'referer': app.request.headers.get('referer')})) }}
    {% endif %}
    {% if is_granted('ROLE_VICTOIRE') %}
        {% javascripts injector='victoire-edit, victoire-leftnavbar' %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
        {% endjavascripts %}
    {% endif %}
    {% if is_granted('ROLE_VICTOIRE') %}
        <script type="text/javascript">
            $vic(document).ready(function(){
                $vic('a#media-manager').on('click', function(ev) {
                    ev.preventDefault();
                    openDGDialog("{{ path('VictoireMediaBundle_folder_show', {'folderId': 1} ) }}", 1050, 600);
                });
            });
        </script>
    {% endif %}
    <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
    <script type="text/javascript">
        var locale = '{{ app.request.locale }}';
        var debug = {{ app.debug ? "true" : "false" }};
    </script>
    <script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>

    {% javascripts injector="foot, victoire-ngApp, alertify-codrops-notification" %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
    {% block alertify %}
        {{ app.session|alertify|raw }}
    {% endblock %}
    <!-- END FOOT_SCRIPT -->
{% endblock foot_script %}<commit_msg>Adapte backendLayout to new front layout<commit_after>{% extends 'VictoireCoreBundle:Layout:layout.html.twig' %}
{% block meta %}<title>Backend</title>{% endblock meta %}
{% block container_attributes %}{{ parent() }} role="victoire-backend"{% endblock container_attributes %}

{% block body %}
    <div class="vic-container">
        <h1>{% block header_title %}{% endblock header_title %}</h1>
        {% block content %}{% endblock content %}
    </div>
{% endblock body %}
{'fraction_non_alphanumeric': 0.1838082001389854, 'fraction_numerical': 0.004169562195969423, 'mean_word_length': 3.355521936459909, 'pattern_counts': {'":': 1, '<': 32, '<?xml version=': 0, '>': 32, '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': '2014191', 'n_tokens_mistral': 959, 'n_tokens_neox': 863, 'n_words': 167}