<commit_before>{% extends 'base.html.twig' %}

{% block body %}
    <h1>{% trans %}Servers{% endtrans %}</h1>

    <div class="mb-3">
        <a class="btn btn-primary" href="{{ path('server_add') }}"><i class="fa fa-plus"></i></a>
    </div>

    {% for group in groups %}
    <div class="group">
        <h2>{{ group.name }}</h2>

        <div class="mb-3">
            <a class="btn btn-primary btn-refresh-group" href="#"><i class="fa fa-refresh"></i></a>
        </div>

        <div class="row">
            {% for server in group.servers %}
            <div class="col-xs-12 col-sm-4 pb-3">
                <div class="card text-center">
                    <div class="card-body">
                        <h4 class="card-title">{{ server.name }}</h4>

                        <p class="update-stats">
                            <span class="updates">{{ server.updates }}</span> {% trans %}updates available,{% endtrans %} <span class="criticalUpdates">{{ server.criticalUpdates }}</span> {% trans %}critical{% endtrans %}
                        </p>

                        <a class="btn btn-primary btn-server-check" href="{{ path('server_check', {id: server.id}) }}"><i class="fa fa-refresh"></i></a>
                        <a class="btn btn-primary btn-server-upgrade" href="{{ path('server_upgrade', {id: server.id}) }}"><i class="fa fa-send"></i></a>
                        <a class="btn btn-primary" href="{{ path('server_edit', {id: server.id}) }}"><i class="fa fa-edit"></i></a>
                        <a class="btn btn-primary" href="{{ path('server_delete', {id: server.id}) }}"><i class="fa fa-times"></i></a>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    </div>

    {% if not loop.last %}<hr>{% endif %}
    {% endfor %}

    {% if ungroupedServers | length > 0 %}
    <hr>

    <div class="group">
        <h2>{% trans %}Servers without group{% endtrans %}</h2>

        <div class="mb-3">
            <a class="btn btn-primary btn-refresh-group" href="#"><i class="fa fa-refresh"></i></a>
        </div>

        <div class="row">
            {% for server in ungroupedServers %}
                <div class="col-xs-12 col-sm-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h4 class="card-title">{{ server.name }}</h4>

                            <p class="update-stats">
                                <span class="updates">{{ server.updates }}</span> {% trans %}updates available,{% endtrans %} <span class="criticalUpdates">{{ server.criticalUpdates }}</span> {% trans %}critical{% endtrans %}
                            </p>

                            <a class="btn btn-primary btn-server-check" href="{{ path('server_check', {id: server.id}) }}"><i class="fa fa-refresh"></i></a>
                            <a class="btn btn-primary btn-server-upgrade" href="{{ path('server_upgrade', {id: server.id}) }}"><i class="fa fa-send"></i></a>
                            <a class="btn btn-primary" href="{{ path('server_edit', {id: server.id}) }}"><i class="fa fa-edit"></i></a>
                            <a class="btn btn-primary" href="{{ path('server_delete', {id: server.id}) }}"><i class="fa fa-times"></i></a><commit_msg>add open in terminal links<commit_after>{% extends 'base.html.twig' %}

{% block body %}
    <h1>{% trans %}Servers{% endtrans %}</h1>

    <div class="mb-3">
        <a class="btn btn-primary" href="{{ path('server_add') }}"><i class="fa fa-plus"></i></a>
    </div>

    {% for group in groups %}
    <div class="group">
        <h2>{{ group.name }}</h2>

        <div class="mb-3">
            <a class="btn btn-primary btn-refresh-group" href="#"><i class="fa fa-refresh"></i></a>
        </div>

        <div class="row">
            {% for server in group.servers %}
            <div class="col-xs-12 col-sm-4 pb-3">
                <div class="card text-center">
                    <div class="card-body">
                        <h4 class="card-title">{{ server.name }}</h4>

                        <p class="update-stats">
                            <span class="updates">{{ server.updates }}</span> {% trans %}updates available,{% endtrans %} <span class="criticalUpdates">{{ server.criticalUpdates }}</span> {% trans %}critical{% endtrans %}
                        </p>

                        <a class="btn btn-primary btn-server-check" href="{{ path('server_check', {id: server.id}) }}"><i class="fa fa-refresh"></i></a>
                        <a class="btn btn-primary btn-server-upgrade" href="{{ path('server_upgrade', {id: server.id}) }}"><i class="fa fa-send"></i></a>
                        <a class="btn btn-primary" href="ssh://root@{{ server.hostname }}/"><i class="fa fa-terminal"></i></a>
                        <a class="btn btn-primary" href="{{ path('server_edit', {id: server.id}) }}"><i class="fa fa-edit"></i></a>
                        <a class="btn btn-primary" href="{{ path('server_delete', {id: server.id}) }}"><i class="fa fa-times"></i></a>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    </div>

    {% if not loop.last %}<hr>{% endif %}
    {% endfor %}

    {% if ungroupedServers | length > 0 %}
    <hr>

    <div class="group">
        <h2>{% trans %}Servers without group{% endtrans %}</h2>

        <div class="mb-3">
            <a class="btn btn-primary btn-refresh-group" href="#"><i class="fa fa-refresh"></i></a>
        </div>

        <div class="row">
            {% for server in ungroupedServers %}
                <div class="col-xs-12 col-sm-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h4 class="card-title">{{ server.name }}</h4>

                            <p class="update-stats">
                                <span class="updates">{{ server.updates }}</span> {% trans %}updates available,{% endtrans %} <span class="criticalUpdates">{{ server.criticalUpdates }}</span> {% trans %}critical{% endtrans %}
                            </p>

                            <a class="btn btn-primary btn-server-check" href="{{ path('server_check', {id: server.id}) }}"><i class="fa fa-refresh"></i></a>
                            <a class="btn btn-primary btn-server-upgrade" href="{{ path('server_upgrade', {id: server.id}) }}"><i class="fa fa-send"></i></a>
                            <a class="btn btn-primary" href="ssh://root@{{ server.hostname }}/"><i class="fa fa-terminal"></i></a>
                            <a class="btn btn-primary" href="{{ path('server_edit', {id: server.id}) }}"><i class="fa fa-edit"></i></a>
                            <a class="btn btn-primary" href="{{ path('server_delete', {id: server.id}) }}"><i class="fa fa-times"></i></a>
{'fraction_non_alphanumeric': 0.20762650427722198, 'fraction_numerical': 0.006089604175728578, 'mean_word_length': 1.8849853617733165, 'pattern_counts': {'":': 0, '<': 189, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1357189', 'n_tokens_mistral': 2164, 'n_tokens_neox': 2002, 'n_words': 485}