<commit_before>{% extends '@KunstmaanAdmin/Default/layout.html.twig' %}

{% import _self as macros %}
{% macro selectLinkRecTreeView(tree, item) %}
    {% import _self as macros %}
    <li rel="page" class="{% if item.online == 0 %}jstree-node--offline{% endif %}"{% if item.online == 0 %} data-jstree='{"type":"offline"}'{% endif %}>
        <a href="#" class="js-url-chooser-link-select" data-slug="{{ item.url }}"  data-id="{{ item.id }}">
            {{ item.title }}
        </a>
        <ul>
            {% for item in tree.children(item.id) %}
                {{ macros.selectLinkRecTreeView(tree, item) }}
            {% endfor %}
        </ul>
    </li>
{% endmacro %}

{% block body %}
    <header role="banner">

        <!-- App Header -->
        <nav role="navigation" class="navbar navbar-inverse navbar-fixed-top">
            <div class="container-fluid">

                <!-- Header -->
                <div class="navbar-header">

                    <!--Header - Toggle -->
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav-bar">
                        <span class="sr-only">Toggle</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>

                <!-- Navigation -->
                <div class="collapse navbar-collapse" id="main-nav-bar">

                    <!-- Navigation - Left -->
                    <ul class="nav navbar-nav">
                        {% if mediaChooserLink is defined and mediaChooserLink %}
                            <li class="active">
                                <a href="javascript:void(0)">
                                    Pages
                                </a>
                            </li>
                            <li>
                                <a href="{{ mediaChooserLink }}">
                                    Media
                                </a>
                            </li>
                        {% endif %}
                    </ul>

                    <!-- Navigation - Right -->
                    <ul class="nav navbar-nav navbar-right">
                        {% set route = app.request.attributes.get('_route') %}
                        {{ localeswitcher_widget(get_backend_locales(), route) }}
                    </ul>
                </div>
            </div>
        </nav>
    </header>


    <!-- Main Content -->
    <main role="main" id="app__main" class="container-fluid app__main url-chooser">

        <!-- Modal Sidebar -->
        <aside id="app__sidebar" class="app__sidebar app__sidebar--static url-chooser__tree">
            <!-- Tree Search -->
            <div class="form-group app__sidebar__module app__sidebar__search">
                <div class="input-group">
                    <span class="input-group-addon">
                        <i class="fa fa-search"></i>
                    </span>
                    <input type="text" placeholder="{{ 'Search' | trans }}" id="app__sidebar__search" class="form-control">
                </div>
                <hr>
            </div>

            <nav role="navigation" id="app__sidebar__navigation" class="app__sidebar__module app__sidebar__navigation" data-reorder-url="{{ path('KunstmaanNodeBundle_nodes_reorder') }}" data-base-url={{ app.request.locale }}>
                <ul>
                    {% for item in tree.rootItems %}
                        {{ macros.selectLinkRecTreeView(tree, item) }}
                    {% endfor %}
                </ul>
            </nav><commit_msg>prepend / for base url<commit_after>{% extends '@KunstmaanAdmin/Default/layout.html.twig' %}

{% import _self as macros %}
{% macro selectLinkRecTreeView(tree, item) %}
    {% import _self as macros %}
    <li rel="page" class="{% if item.online == 0 %}jstree-node--offline{% endif %}"{% if item.online == 0 %} data-jstree='{"type":"offline"}'{% endif %}>
        <a href="#" class="js-url-chooser-link-select" data-slug="{{ item.url }}"  data-id="{{ item.id }}">
            {{ item.title }}
        </a>
        <ul>
            {% for item in tree.children(item.id) %}
                {{ macros.selectLinkRecTreeView(tree, item) }}
            {% endfor %}
        </ul>
    </li>
{% endmacro %}

{% block body %}
    <header role="banner">

        <!-- App Header -->
        <nav role="navigation" class="navbar navbar-inverse navbar-fixed-top">
            <div class="container-fluid">

                <!-- Header -->
                <div class="navbar-header">

                    <!--Header - Toggle -->
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav-bar">
                        <span class="sr-only">Toggle</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>

                <!-- Navigation -->
                <div class="collapse navbar-collapse" id="main-nav-bar">

                    <!-- Navigation - Left -->
                    <ul class="nav navbar-nav">
                        {% if mediaChooserLink is defined and mediaChooserLink %}
                            <li class="active">
                                <a href="javascript:void(0)">
                                    Pages
                                </a>
                            </li>
                            <li>
                                <a href="{{ mediaChooserLink }}">
                                    Media
                                </a>
                            </li>
                        {% endif %}
                    </ul>

                    <!-- Navigation - Right -->
                    <ul class="nav navbar-nav navbar-right">
                        {% set route = app.request.attributes.get('_route') %}
                        {{ localeswitcher_widget(get_backend_locales(), route) }}
                    </ul>
                </div>
            </div>
        </nav>
    </header>


    <!-- Main Content -->
    <main role="main" id="app__main" class="container-fluid app__main url-chooser">

        <!-- Modal Sidebar -->
        <aside id="app__sidebar" class="app__sidebar app__sidebar--static url-chooser__tree">
            <!-- Tree Search -->
            <div class="form-group app__sidebar__module app__sidebar__search">
                <div class="input-group">
                    <span class="input-group-addon">
                        <i class="fa fa-search"></i>
                    </span>
                    <input type="text" placeholder="{{ 'Search' | trans }}" id="app__sidebar__search" class="form-control">
                </div>
                <hr>
            </div>

            <nav role="navigation" id="app__sidebar__navigation" class="app__sidebar__module app__sidebar__navigation" data-reorder-url="{{ path('KunstmaanNodeBundle_nodes_reorder') }}" data-base-url={{ "/" ~ app.request.locale }}>
                <ul>
                    {% for item in tree.rootItems %}
                        {{ macros.selectLinkRecTreeView(tree, item) }}
                    {% endfor %}
                </ul>
            </nav>
{'fraction_non_alphanumeric': 0.14921571256200564, 'fraction_numerical': 0.0008043973723019171, 'mean_word_length': 1.2723119098385622, 'pattern_counts': {'":': 2, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5385572', 'n_tokens_mistral': 2050, 'n_tokens_neox': 1841, 'n_words': 376}