<commit_before>{#  ATICA - Web application for supporting Quality Management Systems
    Copyright (C) 2009-2013: <NAME>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see [http://www.gnu.org/licenses/]. #}

{% extends "layout.html.twig" %}

{% block maincontent %}
<div class="panel panel-info">
    <div class="panel-heading">
        <h1>Listado de personal</h1>
    </div>
    <div class="panel-body">
        <a href="{{ urlFor('personlist', { 'sort': 0, 'filter': 1-filter } ) }}" class="btn btn-info pull-right">{{ filter ? 'Mostrar todos los usuarios' : 'Mostrar sólo los usuarios activos' }}</a>
    </div>
    <form>
        <table class="table table-striped table-condensed table-hover">
            <thead>
                <tr>
                    <th class="col-md-2"><input type="checkbox"> <a href="{{ urlFor('personlist', { 'sort': 0, 'filter': filter } ) }}">Usuario</a></th>
                    <th class="col-md-6"><a href="{{ urlFor('personlist', { 'sort': 1, 'filter': filter } ) }}">Nombre</a></th>
                    <th class="hidden-xs hidden-sm col-md-3"><a href="{{ urlFor('personlist', { 'sort': 2, 'filter': filter } ) }}">Correo-e</a></th>
                    <th class="col-md-1"><a href="{{ urlFor('personlist', { 'sort': 3, 'filter': filter } ) }}">Últ. conexión</a></th>
                </tr>
            </thead>
            <tbody>
                {% for person in persons %}
                {% set link = urlFor('personal', { 'id': person['id'], 'section': 0 }) %}
                {% set gender = ['', 'male', 'female'][person['gender']] %}
                <tr>
                    <td><input type="checkbox" name="user{{ person['id'] }}">
                        <a href="{{ link }}">{{ person['user_name'] }}</a>
                        {% if not person['is_active'] %}
                            <span class="icon-eye-close" title="Desactivado"></span>
                        {% endif %}
                        {% if person['is_local_administrator'] or person['is_global_administrator'] %}
                            <span class="icon-cog" title="Administrador"></span>
                        {% endif %}
                    </td>
                    <td class="visible-xs">
                        <a href="{{ link }}">{{ person['display_name'] }}</a>
                        {% if gender %}<span class="icon-{{gender}}"></span>{% endif %}
                    </td>
                    <td class="hidden-xs">
                        <a href="{{ link }}">{{ person['first_name'] ~ ' ' ~ person['last_name'] }}</a>
                        {% if gender %}<span class="icon-{{gender}}"></span>{% endif %}
                    </td>
                    <td class="hidden-xs hidden-sm">{{ person['email'] }}</td><commit_msg>feat(profile): Profile shortcut from user list<commit_after>{#  ATICA - Web application for supporting Quality Management Systems
    Copyright (C) 2009-2013: <NAME>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see [http://www.gnu.org/licenses/]. #}

{% extends "layout.html.twig" %}

{% block maincontent %}
<div class="panel panel-info">
    <div class="panel-heading">
        <h1>Listado de personal</h1>
    </div>
    <div class="panel-body">
        <a href="{{ urlFor('personlist', { 'sort': 0, 'filter': 1-filter } ) }}" class="btn btn-info pull-right">{{ filter ? 'Mostrar todos los usuarios' : 'Mostrar sólo los usuarios activos' }}</a>
    </div>
    <form>
        <table class="table table-striped table-condensed table-hover">
            <thead>
                <tr>
                    <th class="col-md-2"><input type="checkbox"> <a href="{{ urlFor('personlist', { 'sort': 0, 'filter': filter } ) }}">Usuario</a></th>
                    <th class="col-md-6"><a href="{{ urlFor('personlist', { 'sort': 1, 'filter': filter } ) }}">Nombre</a></th>
                    <th class="hidden-xs hidden-sm col-md-3"><a href="{{ urlFor('personlist', { 'sort': 2, 'filter': filter } ) }}">Correo-e</a></th>
                    <th class="col-md-1"><a href="{{ urlFor('personlist', { 'sort': 3, 'filter': filter } ) }}">Últ. conexión</a></th>
                </tr>
            </thead>
            <tbody>
                {% for person in persons %}
                {% set link = urlFor('personal', { 'id': person['id'], 'section': 0 }) %}
                {% set gender = ['', 'male', 'female'][person['gender']] %}
                <tr>
                    <td><input type="checkbox" name="user{{ person['id'] }}">
                        <a href="{{ link }}">{{ person['user_name'] }}</a>
                        {% if not person['is_active'] %}
                            <span class="icon-eye-close" title="Desactivado"></span>
                        {% endif %}
                        {% if person['is_local_administrator'] or person['is_global_administrator'] %}
                            <span class="icon-cog" title="Administrador"></span>
                        {% endif %}
                        <a href="{{ urlFor('personal', { 'id': person['id'], 'section': 1 }) }}" class="delivery-tools"><span class="icon-group"></span></a>
                    </td>
                    <td class="visible-xs">
                        <a href="{{ link }}">{{ person['display_name'] }}</a>
                        
                    </td>
                    <td class="hidden-xs">
                        <a href="{{ link }}">{{ person['first_name'] ~ ' ' ~ person['last_name'] }}</a>
                        {% if gender %}<span class="icon-{{gender}}"></span>{% endif %}
                    </td>
                    <td class="hidden-xs hidden-sm">{{ person['email'] }}</td>
{'fraction_non_alphanumeric': 0.1689337428696797, 'fraction_numerical': 0.006581834137779728, 'mean_word_length': 1.9964943032427696, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2618652', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1830, 'n_words': 562}