<commit_before>{% extends 'T42UserBundle::layout.html.twig' %}

{% block breadcrumb %}
    <li><a href="{{ path('t42_backend_dashboard_index') }}">Panel</a></li>
    <li class="divider">/</li>
    <li class="active">Usuarios</li>
{% endblock %}

{% block content %}
<div class="row">
    <div class="span12">
        <h2>Usuarios</h2>
        <div class="row">
            <div class="span3">
                <ul class="nav nav-tabs nav-stacked">
                    {% if is_granted('ROLE_USUARIOS_ADD') %}
                        <li><a href="{{ path('t42_user_invitation_new') }}"><i class="icon-user"></i> Enviar invitaci&oacute;n a usuario</a></li>
                    {% endif %}
                    <li><a href="{{ path('t42_backend_dashboard_index') }}"><i class="icon-arrow-left"></i> Volver</a></li>
                </ul>
            </div>
            <div class="span7 offset1">
                <table class="table table-condensed table-striped">
                    <thead>
                        <tr>
                            <td>Nombre de Usuario</td>
                            <td>Apellido y Nombre</td>
                            <td>Email</td>
                            <td>Ultimo Login</td>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for entity in pagination %}
                            <tr>
                                <td>
                                    {% if is_granted('ROLE_USUARIOS_VIEW') %}
                                        <a href="{{ path('fos_user_profile_show', { 'id': entity.id }) }}">{{ entity.username }}</a>
                                    {% else%}
                                        {{ entity.username }}
                                    {% endif %}
                                </td>
                                {% spaceless %}
                                    <td>
                                        {% if entity.lastname is not empty and entity.firstname is not empty %}
                                            {{ entity.lastname ~ ', ' ~ entity.firstname}}
                                        {% elseif  entity.lastname is empty and entity.firstname is not empty %}
                                            {{ entity.firstname }}
                                        {% elseif  entity.lastname is not empty and entity.firstname is empty %}
                                            {{ entity.lastname }}
                                        {% elseif  entity.lastname is empty and entity.firstname is empty %}
                                            <i> {{ n/d }} </i>
                                        {% endif %}

                                    </td>
                                {% endspaceless %}
                                <td>{{ entity.email }}</td>
                                <td>{% if entity.lastLogin %}{{ entity.lastLogin|date('d-m-Y H:i:s') }}{% endif %}</td>
                                <td>
                                    {% if is_granted('ROLE_USUARIOS_EDIT') %}
                                        <a href="{{ path('fos_user_profile_edit', { 'id': entity.id }) }}"><i class="icon-pencil"></i></a>
                                    {% endif %}
                                </td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
                <div class="row-fluid">
                    <div class="span12">{{ pagination.render()|raw }}</div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}<commit_msg>Idem al otro commit pero para el listado de usuarios<commit_after>{% extends 'T42UserBundle::layout.html.twig' %}

{% block breadcrumb %}
    <li><a href="{{ path('t42_backend_dashboard_index') }}">Panel</a></li>
    <li class="divider">/</li>
    <li class="active">Usuarios</li>
{% endblock %}

{% block content %}
<div class="row">
    <div class="span12">
        <h2>Usuarios</h2>
        <div class="row">
            <div class="span3">
                <ul class="nav nav-tabs nav-stacked">
                    {% if is_granted('ROLE_USUARIOS_ADD') %}
                        <li><a href="{{ path('t42_user_invitation_new') }}"><i class="icon-user"></i> Enviar invitaci&oacute;n a usuario</a></li>
                    {% endif %}
                    <li><a href="{{ path('t42_backend_dashboard_index') }}"><i class="icon-arrow-left"></i> Volver</a></li>
                </ul>
            </div>
            <div class="span7 offset1">
                <table class="table table-condensed table-striped">
                    <thead>
                        <tr>
                            <td>Nombre de Usuario</td>
                            <td>Apellido y Nombre</td>
                            <td>Email</td>
                            <td>Ultimo Login</td>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for entity in pagination %}
                            <tr>
                                <td>
                                    {% if is_granted('ROLE_USUARIOS_VIEW') %}
                                        <a href="{{ path('fos_user_profile_show', { 'id': entity.id }) }}">{{ entity.username }}</a>
                                    {% else%}
                                        {{ entity.username }}
                                    {% endif %}
                                </td>
                                {% spaceless %}
                                    <td>
                                        {% if entity.lastname is not empty and entity.firstname is not empty %}
                                            {{ entity.lastname ~ ', ' ~ entity.firstname}}
                                        {% elseif  entity.lastname is empty and entity.firstname is not empty %}
                                            {{ entity.firstname }}
                                        {% elseif  entity.lastname is not empty and entity.firstname is empty %}
                                            {{ entity.lastname }}
                                        {% elseif  entity.lastname is empty and entity.firstname is empty %}
                                            <i> {{ n/d }} </i>
                                        {% endif %}

                                    </td>
                                {% endspaceless %}
                                <td>{{ entity.email }}</td>
                                <td>
                                    {% if entity.lastLogin is not empty %}
                                        {{ entity.lastLogin|date('d-m-Y H:i:s') }}
                                    {% else %}
                                        <i>n/d</i>
                                    {% endif %}
                                </td>
                                <td>
                                    {% if is_granted('ROLE_USUARIOS_EDIT') %}
                                        <a href="{{ path('fos_user_profile_edit', { 'id': entity.id }) }}"><i class="icon-pencil"></i></a>
                                    {% endif %}
                                </td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
                <div class="row-fluid">
                    <div class="span12">{{ pagination.render()|raw }}</div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.1305137519460301, 'fraction_numerical': 0.0044110015568240785, 'mean_word_length': 0.8324221535536012, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 72, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3016569', 'n_tokens_mistral': 1957, 'n_tokens_neox': 1770, 'n_words': 366}