<commit_before>{% extends '@CMS/Admin/_layout.html.twig' %}

{% block title %}{{ 'Users'|trans }} / {{ parent() }}{% endblock %}

{% set page_header = 'Users'|trans %}

{% block nav %}
    {{ knp_menu_render('CMSBundle:AdminMenu:user', { 'currentClass': 'active', 'clear_matcher': true })}}
{% endblock nav %}

{% block content %}

<div class="box box-primary">
    <div class="box-header with-border">

    <table class="table table-bordered table-hover">
        <thead><tr>
            <th>#</th>
            <th>{{ 'Username'|trans }}</th>
            <th>{{ 'Email'|trans }}</th>
            <th>{{ 'Status'|trans }}</th>
            <th>{{ 'Roles'|trans }}</th>
            <th>{{ 'Registred'|trans }}</th>
            <th>{{ 'Last login'|trans }}</th>
        </tr></thead>
        <tbody>
        {% set users_count = 1 %}
        {% for user in users %}
            <tr>
                <td>{{ users_count }}{% set users_count = users_count + 1 %}</td>
                <td><a href="{{ path('cms_admin_user_edit', {'id': user.id}) }}">{{ user.username }}</a></td>
                <td><a href="{{ path('cms_admin_user_edit', {'id': user.id}) }}">{{ user.email }}</a></td>
                <td>
                    {% if user.enabled %}
                        Активен
                    {% else %}
                        <span class="label label-dangerlabel-important">Не Активен</span>
                    {% endif %}
                </td>
                <td>
                    <ul>
                    {% for role in user.roles %}
                        {% if role != 'ROLE_USER' %}
                            <li>{{ role }}</li>
                        {% endif %}
                    {% endfor %}
                    </ul>
                </td>
                <td>{{ user.createdAt|localizeddate() }}</td>
                <td>{{ user.lastLogin|localizeddate() }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    </div>
</div>

{% endblock content %}<commit_msg>hide date if empty lastLogin<commit_after>{% extends '@CMS/Admin/_layout.html.twig' %}

{% block title %}{{ 'Users'|trans }} / {{ parent() }}{% endblock %}

{% set page_header = 'Users'|trans %}

{% block nav %}
    {{ knp_menu_render('CMSBundle:AdminMenu:user', { 'currentClass': 'active', 'clear_matcher': true })}}
{% endblock nav %}

{% block content %}

<div class="box box-primary">
    <div class="box-header with-border">

    <table class="table table-bordered table-hover">
        <thead><tr>
            <th>#</th>
            <th>{{ 'Username'|trans }}</th>
            <th>{{ 'Email'|trans }}</th>
            <th>{{ 'Status'|trans }}</th>
            <th>{{ 'Roles'|trans }}</th>
            <th>{{ 'Registred'|trans }}</th>
            <th>{{ 'Last login'|trans }}</th>
        </tr></thead>
        <tbody>
        {% set users_count = 1 %}
        {% for user in users %}
            <tr>
                <td>{{ users_count }}{% set users_count = users_count + 1 %}</td>
                <td><a href="{{ path('cms_admin_user_edit', {'id': user.id}) }}">{{ user.username }}</a></td>
                <td><a href="{{ path('cms_admin_user_edit', {'id': user.id}) }}">{{ user.email }}</a></td>
                <td>
                    {% if user.enabled %}
                        Активен
                    {% else %}
                        <span class="label label-dangerlabel-important">Не Активен</span>
                    {% endif %}
                </td>
                <td>
                    <ul>
                    {% for role in user.roles %}
                        {% if role != 'ROLE_USER' %}
                            <li>{{ role }}</li>
                        {% endif %}
                    {% endfor %}
                    </ul>
                </td>
                <td>{{ user.createdAt|localizeddate() }}</td>
                <td>{% if user.lastLogin %}{{ user.lastLogin|localizeddate() }}{% endif %}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    </div>
</div>

{% endblock content %}
{'fraction_non_alphanumeric': 0.19744283255470862, 'fraction_numerical': 0.0009835259404966806, 'mean_word_length': 1.4669496664645238, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '1446306', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1196, 'n_words': 257}