<commit_before>{% include '_header.twig' with { 'active':'settings' } %}

<div class="row-fluid">
    <div class="span9">

        <h1><strong>{{ __("All users") }}</strong></h1>

        <table class='dashboardlisting'>
            <tr>
                <th>#</th>
                <th>{{ __('Username') }}</th>
                <th>{{ __('Level') }}</th>
                <th>{{ __('Last seen') }}</th>
                <th>{{ __('Roles') }}</th>
                <th>{{ __('Actions') }}</th>
            </tr>
            {% for user in users %}

                <tr class="{% if user.enabled==0 %}dim{% endif %}">
                    <td class='id'>№ {{user.id}}</td>

                    <td><strong>{{ user.displayname }}</strong> ({{ user.username}}) </td>
                    <td>{{ userlevels[user.userlevel] }} </td>
                    <td>
                        {% if user.lastseen|date('Y') > "1901" %}
                            <time class="moment" datetime="{{ user.lastseen|date("c") }}" title="{{ user.lastseen }}">{{ user.lastseen }}</time>
                        {% else %}
                            -
                        {% endif %}
                    </td>
                    <td class='contenttypes'>
                        {% if user.contenttypes|length == app.config.get('contenttypes')|length %}
                            <em>{{ __('all') }}</em>
                        {% else %}
                            {{ user.roles|join(", ") }}
                        {% endif %}
                    </td>
                    <td class='actions'>

                        <div class="btn-group">
                            <a href="{{ path('useredit', { 'id' : user.id }) }}" class="btn btn-mini">
                                    <i class="icon-edit"></i> {{ __('Edit') }}
                            </a>
                            <button class="btn dropdown-toggle btn-mini" data-toggle="dropdown">
                                <i class="icon-info-sign"></i>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu pull-right">
                                {% if user.enabled %}
                                    <li><a href="{{ path('useraction', { 'action': 'disable', 'id': user.id }) }}">{{ __('Disable %username%',{'%username%':user.displayname}) }}</a></li>
                                {% else %}
                                    <li><a href="{{ path('useraction', { 'action': 'enable', 'id': user.id }) }}">{{ __('Enable %username%',{'%username%':user.displayname}) }}</a></li>
                                {% endif %}
                                <li><a href="{{ path('useraction', { 'action': 'delete', 'id': user.id, token: token() }) }}" class="confirm" data-confirm="{{ __('Are you sure you want to delete %username%?',{'%username%':user.displayname}) }}">{{ __('Delete %username%',{'%username%':user.displayname}) }}</a></li>
                                <li class="divider"></li>
                                <li><a class="nolink">{{ __('Last seen') }}: <strong>{% if user.lastseen>"1000" %}{{ user.lastseen|date("Y-m-d H:i") }}{% else %}-{% endif %}</strong></a></li>
                                <li><a class="nolink">{{ __('Last known IP') }}: <strong>{% if user.lastip!="" %}{{ user.lastip }}{% else %}-{% endif %}</strong></a></li>
                            </ul>
                        </div>

                    </td>
                </tr>

            {% endfor %}

        </table>

        <h2><strong>{{ __("Roles and Permissions") }}</strong></h2>

        <p>The settings for roles and permissions are stored in <code>permissions.yml</code>.</p>
        <a class="btn btn-small" href="{{ path('fileedit', { 'file': 'app/config/contenttypes.yml'}) }}">{{ __("Roles and Permissions") }}</a>
<commit_msg>Link to edit permissions points to wrong file.<commit_after>{% include '_header.twig' with { 'active':'settings' } %}

<div class="row-fluid">
    <div class="span9">

        <h1><strong>{{ __("All users") }}</strong></h1>

        <table class='dashboardlisting'>
            <tr>
                <th>#</th>
                <th>{{ __('Username') }}</th>
                <th>{{ __('Level') }}</th>
                <th>{{ __('Last seen') }}</th>
                <th>{{ __('Roles') }}</th>
                <th>{{ __('Actions') }}</th>
            </tr>
            {% for user in users %}

                <tr class="{% if user.enabled==0 %}dim{% endif %}">
                    <td class='id'>№ {{user.id}}</td>

                    <td><strong>{{ user.displayname }}</strong> ({{ user.username}}) </td>
                    <td>{{ userlevels[user.userlevel] }} </td>
                    <td>
                        {% if user.lastseen|date('Y') > "1901" %}
                            <time class="moment" datetime="{{ user.lastseen|date("c") }}" title="{{ user.lastseen }}">{{ user.lastseen }}</time>
                        {% else %}
                            -
                        {% endif %}
                    </td>
                    <td class='contenttypes'>
                        {% if user.contenttypes|length == app.config.get('contenttypes')|length %}
                            <em>{{ __('all') }}</em>
                        {% else %}
                            {{ user.roles|join(", ") }}
                        {% endif %}
                    </td>
                    <td class='actions'>

                        <div class="btn-group">
                            <a href="{{ path('useredit', { 'id' : user.id }) }}" class="btn btn-mini">
                                    <i class="icon-edit"></i> {{ __('Edit') }}
                            </a>
                            <button class="btn dropdown-toggle btn-mini" data-toggle="dropdown">
                                <i class="icon-info-sign"></i>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu pull-right">
                                {% if user.enabled %}
                                    <li><a href="{{ path('useraction', { 'action': 'disable', 'id': user.id }) }}">{{ __('Disable %username%',{'%username%':user.displayname}) }}</a></li>
                                {% else %}
                                    <li><a href="{{ path('useraction', { 'action': 'enable', 'id': user.id }) }}">{{ __('Enable %username%',{'%username%':user.displayname}) }}</a></li>
                                {% endif %}
                                <li><a href="{{ path('useraction', { 'action': 'delete', 'id': user.id, token: token() }) }}" class="confirm" data-confirm="{{ __('Are you sure you want to delete %username%?',{'%username%':user.displayname}) }}">{{ __('Delete %username%',{'%username%':user.displayname}) }}</a></li>
                                <li class="divider"></li>
                                <li><a class="nolink">{{ __('Last seen') }}: <strong>{% if user.lastseen>"1000" %}{{ user.lastseen|date("Y-m-d H:i") }}{% else %}-{% endif %}</strong></a></li>
                                <li><a class="nolink">{{ __('Last known IP') }}: <strong>{% if user.lastip!="" %}{{ user.lastip }}{% else %}-{% endif %}</strong></a></li>
                            </ul>
                        </div>

                    </td>
                </tr>

            {% endfor %}

        </table>

        <h2><strong>{{ __("Roles and Permissions") }}</strong></h2>

        <p>The settings for roles and permissions are stored in <code>permissions.yml</code>.</p>
        <a class="btn btn-small" href="{{ path('fileedit', { 'file': 'app/config/permissions.yml'}) }}">{{ __("Roles and Permissions") }}</a>

{'fraction_non_alphanumeric': 0.2074916901048325, 'fraction_numerical': 0.0035796471490667347, 'mean_word_length': 1.352781954887218, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4780603', 'n_tokens_mistral': 2280, 'n_tokens_neox': 2069, 'n_words': 435}