<commit_before>{% extends '::two-columns.html.twig' %}

{% block main_content %}
    {% include 'DisideSecurityBundle:Default:_filter.html.twig' with { route: 'logs' } %}

    <h1>{{ 'logs.title'|trans }}</h1>

    {% if pagination|length > 0 %}
        <table id="logs" class="table">
            <tr>
                <th>{{ 'sort.date'|trans }}</th>
                <th>{{ 'sort.type'|trans }}</th>
                <th>{{ 'sort.user'|trans }}</th>
            </tr>
            {% for log in pagination %}
                <tr class="log">
                    <td class="col-md-2">
                        <small>{{ log.date|date('Y/m/d H:i:s') }}</small>
                    </td>
                    <td class="col-md-8 collapsible">
                        <a class="collapsed" href="#log-details-{{ log.id }}" data-toggle="collapse">{{ ('log.' ~ log.action)|trans }}</a>
                        <p id="log-details-{{ log.id }}" class="collapse">
                            {{ log.details }}
                        </p>
                    </td>
                    <td class="col-md-2">
                        {{ log.user }}
                    </td>
                </tr>
            {% endfor %}
        </table>

        <nav class="pull-right">
            {{ knp_pagination_render(pagination) }}
        </nav>
    {% else %}
        <p>
            {{ 'logs.empty_list'|trans }}
        </p>
    {% endif %}

{% endblock main_content %}
<commit_msg>Changed log view<commit_after>{% extends '::two-columns.html.twig' %}

{% block main_content %}
    {% include 'DisideSecurityBundle:Default:_filter.html.twig' with { route: 'logs' } %}

    <h1>{{ 'logs.title'|trans }}</h1>

    {% if pagination|length > 0 %}
        <table id="logs" class="table">
            <tr>
                <th>{{ 'sort.date'|trans }}</th>
                <th>{{ 'sort.type'|trans }}</th>
                <th>{{ 'sort.user'|trans }}</th>
            </tr>
            {% for log in pagination %}
                <tr class="log">
                    <td class="col-md-2">
                        <small>{{ log.date|date('Y/m/d H:i:s') }}</small>
                    </td>
                    <td class="col-md-6 collapsible">
                        <a class="collapsed" href="#log-details-{{ log.id }}" data-toggle="collapse">{{ ('log.' ~ log.action)|trans }}</a>
                        <p id="log-details-{{ log.id }}" class="collapse">
                            {{ log.details }}
                        </p>
                    </td>
                    <td class="col-md-4">
                        {{ log.user }}
                    </td>
                </tr>
            {% endfor %}
        </table>

        <nav class="pull-right">
            {{ knp_pagination_render(pagination) }}
        </nav>
    {% else %}
        <p>
            {{ 'logs.empty_list'|trans }}
        </p>
    {% endif %}

{% endblock main_content %}

{'fraction_non_alphanumeric': 0.18777739842949812, 'fraction_numerical': 0.004096961420279959, 'mean_word_length': 1.2521137586471944, 'pattern_counts': {'":': 0, '<': 63, '<?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': '4104792', 'n_tokens_mistral': 937, 'n_tokens_neox': 850, 'n_words': 160}