<commit_before>{% extends 'VlRadRestBundle:Default:skeleton.html.twig' %}
{% block radrest_content %}
    <div class="panel-heading">
        <h3 class="panel-title">Users</h3>
    </div>
    <div class="table-responsive">
        <table class="table">
            <thead>
                <tr>
                    <th>Username</th>
                    <th>Email</th>
                    <th>Groups {{ label('WIP')}}</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                {% for obj in data %}
                    <tr>
                        <td>
                            {{ obj.username }}
                            {% if 'ROLE_ADMIN' in obj.roles %}
                                {{ label_danger('Admin') }}
                            {% endif %}
                        </td>
                        <td>{{ obj.email }}</td>
                        <td>...</td>
                        <td>
                          <div class="btn-group btn-group-sm">
                              {% if controller.may('get', obj) %}
                                  <a class="btn btn-info" href="{{ url(controller.route('get'), {id: obj.id}) }}">View</a>
                              {% endif %}
                              {% if controller.may('edit', obj) %}
                                  <a class="btn btn-default" href="{{ url(controller.route('edit'), {id: obj.id}) }}">Edit</a>
                              {% endif %}
                              {% if controller.may('remove', obj) %}
                                  <a class="btn btn-danger" href="{{ url(controller.route('remove'), {id: obj.id}) }}">Delete</a>
                              {% endif %}
                          </div>
                        </td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
    <div class="panel-body">
        {% if controller.may('new') %}
            <a class="btn btn-primary btn-sm" href="{{url(controller.route('new'))}}">Create</a>
        {% endif %}
    </div>
    <div class="panel-body text-center">
        {{ knp_pagination_render(data, "", {"media_type": null}) }}
    </div>
{% endblock %}<commit_msg>Remove groups column for users; add link to admin label<commit_after>{% extends 'VlRadRestBundle:Default:cget.html.twig' %}
{% block radrest_content %}
    <div class="panel-heading">
        <h3 class="panel-title">Users</h3>
    </div>
    <div class="table-responsive">
        <table class="table">
            <thead>
                <tr>
                    <th>Username</th>
                    <th>Email</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                {% for obj in data %}
                    <tr>
                        <td>
                            {{ obj.username }}
                            {% if 'ROLE_ADMIN' in obj.roles %}
                                <a href="{{ url(controller.route('cget'), {q: 'is: admin'})}}">{{ label_danger('Admin') }}</a>
                            {% endif %}
                        </td>
                        <td>{{ obj.email }}</td>
                        <td>
                          <div class="btn-group btn-group-sm">
                              {% if controller.may('get', obj) %}
                                  <a class="btn btn-info" href="{{ url(controller.route('get'), {id: obj.id}) }}">View</a>
                              {% endif %}
                              {% if controller.may('edit', obj) %}
                                  <a class="btn btn-default" href="{{ url(controller.route('edit'), {id: obj.id}) }}">Edit</a>
                              {% endif %}
                              {% if controller.may('remove', obj) %}
                                  <a class="btn btn-danger" href="{{ url(controller.route('remove'), {id: obj.id}) }}">Delete</a>
                              {% endif %}
                          </div>
                        </td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
    <div class="panel-body">
        {% if controller.may('new') %}
            <a class="btn btn-primary btn-sm" href="{{url(controller.route('new'))}}">Create</a>
        {% endif %}
    </div>
    <div class="panel-body text-center">
        {{ knp_pagination_render(data, "", {"media_type": null}) }}
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.1662971175166297, 'fraction_numerical': 0.0008869179600886918, 'mean_word_length': 1.0504545454545455, 'pattern_counts': {'":': 2, '<': 93, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2003248', 'n_tokens_mistral': 1268, 'n_tokens_neox': 1149, 'n_words': 229}