<commit_before>{% extends "layout/backend_index.html.twig" %}
{% from 'macros/misc.html.twig' import pagination %}
{% import 'macros/buttons.html.twig' as button %}
{% from 'macros/sorting.html.twig' import sorting %}
{% import 'macros/modal.html.twig' as modal %}

{% set sorting = app.request.get('sorting') %}

{% set icon = false %}
{% set currentOrder = null %}

{% if null == sorting %}
    {% set icon = true %}
    {% set currentOrder = 'asc' %}
{% endif %}

{% block new_entity_button %}
    <a class="btn btn-primary" href="{{ path('admin_page_new') }}">
        <span class="glyphicon glyphicon-plus-sign"></span>
        Nouveau page
    </a>
{% endblock new_entity_button %}

{% block page_title %}
    Liste des pages
{% endblock page_title %}

{% block list %}
    <table class="table table-striped">
        <thead>
        <tr>
            <th>#</th>
            <th>{{ sorting('admin_page_index', 'label.name'|trans, 'name', 'asc', icon, currentOrder) }}</th>
            <th>{{ sorting('admin_page_index', 'label.description'|trans, 'description', 'asc') }}</th>
        </tr>
        </thead>
        <tbody>
        {% for page in pages %}
            <tr>
                <td>{{ page.id }}</td>
                <td>{{ page }}</td>
                <td>{{ page.description|striptags }}</td>
                <td class="text-right">
                    <ul class="list-inline text-nowrap">
                        <li>
                            {{ button.show(path('page_show', { 'id': page.id, 'slug': page.slug })) }}
                        </li>
                        <li>
                            {{ button.edit(path('admin_page_edit', { 'id': page.id })) }}
                        </li>
                        <li>
                            {{ button.delete(path('admin_page_delete', { 'id': page.id })) }}
                        </li>
                    </ul>
                </td><commit_msg>fix cms page index<commit_after>{% extends "layout/backend_index.html.twig" %}
{% from 'macros/misc.html.twig' import pagination %}
{% import 'macros/buttons.html.twig' as button %}
{% from 'macros/sorting.html.twig' import sorting %}
{% import 'macros/modal.html.twig' as modal %}

{% set sorting = app.request.get('sorting') %}

{% set icon = false %}
{% set currentOrder = null %}

{% if null == sorting %}
    {% set icon = true %}
    {% set currentOrder = 'asc' %}
{% endif %}

{% block new_entity_button %}
    <a class="btn btn-primary" href="{{ path('admin_page_new') }}">
        <span class="glyphicon glyphicon-plus-sign"></span>
        Nouveau page
    </a>
{% endblock new_entity_button %}

{% block page_title %}
    Liste des pages
{% endblock page_title %}

{% block list %}
    <table class="table table-striped">
        <thead>
        <tr>
            <th>#</th>
            <th>{{ sorting('admin_page_index', 'label.title'|trans, 'title', 'asc', icon, currentOrder) }}</th>
        </tr>
        </thead>
        <tbody>
        {% for page in pages %}
            <tr>
                <td>{{ page.id }}</td>
                <td>{{ page.title }}</td>
                <td class="text-right">
                    <ul class="list-inline text-nowrap">
                        <li>
                            {{ button.show(path('page_show', { 'id': page.name })) }}
                        </li>
                        <li>
                            {{ button.edit(path('admin_page_edit', { 'id': page.name })) }}
                        </li>
                        <li>
                            {{ button.delete(path('admin_page_delete', { 'id': page.name })) }}
                        </li>
                    </ul>
                </td>
{'fraction_non_alphanumeric': 0.17540540540540542, 'fraction_numerical': 0.0, 'mean_word_length': 1.6568557071069634, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '6639474', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1085, 'n_words': 237}