<commit_before>{% extends 'base.html' %}
{% load so_extras %}

{% block nav-minions %}class="active"{% endblock %}

{% block post-script %}
    <script>
        $(function() {
            function toggleSystemUsers() {
                $('#usertable tr').each(function(index) {
                    if ($(this).data('uid') < 1000) { $(this).toggle(); }
                })
            }
            toggleSystemUsers();
            $('#toggleSystemUsers').click(toggleSystemUsers);

            $.tablesorter.themes.bootstrap = {
                header: 'bootstrap-header',
                iconSortNone: 'fa fa-sort',
                iconSortAsc: 'fa fa-sort-asc',
                iconSortDesc: 'fa fa-sort-desc',
            };
            $('#usertable, #partitiontable').tablesorter({
                theme: 'bootstrap',
                headerTemplate: '{content} {icon}',
                sortList: [[0,0]],
                widgets: ['uitheme'],
            });
            $('#packagetable').tablesorter({
                theme: 'bootstrap',
                headerTemplate: '{content} {icon}',
                sortList: [[0,0]],
                headers: {3:{sorter:false}},
                widgets: ['uitheme'],
            });
            $('#packagetable').filterTable({
                inputSelector: '#packagetable-search',
            });
        })
    </script>
{% endblock %}

{% block content %}
    <div class="page-header">
        <h1>{{ minion.fqdn }}</h1>
    </div>

    <div class="row">
        <div class="col-md-12">

            <!-- tab navigation -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#general" aria-controls="general" role="tab" data-toggle="tab">General</a></li>
                <li role="presentation"><a href="#networks" aria-controls="networks" role="tab" data-toggle="tab">Networks</a></li>
                <li role="presentation"><a href="#packages" aria-controls="packages" role="tab" data-toggle="tab">Packages</a></li>
                <li role="presentation"><a href="#users" aria-controls="users" role="tab" data-toggle="tab">Users</a></li>
                <li role="presentation"><a href="#partitions" aria-controls="partitions" role="tab" data-toggle="tab">Partitions</a></li>
            </ul>

            <!-- tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane fade in active" id="general">
                    <div class="row">
                        <div class="col-md-8">
                            <i>Hier soll man in Zukunft eigenes Markdown hinterlegen können ...</i>
                        </div>
                        <div class="col-md-4">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>Property</th>
                                        <th>Value</th>
                                    </tr>
                                </thead><commit_msg>Remove thead from minion general tab<commit_after>{% extends 'base.html' %}
{% load so_extras %}

{% block nav-minions %}class="active"{% endblock %}

{% block post-script %}
    <script>
        $(function() {
            function toggleSystemUsers() {
                $('#usertable tr').each(function(index) {
                    if ($(this).data('uid') < 1000) { $(this).toggle(); }
                })
            }
            toggleSystemUsers();
            $('#toggleSystemUsers').click(toggleSystemUsers);

            $.tablesorter.themes.bootstrap = {
                header: 'bootstrap-header',
                iconSortNone: 'fa fa-sort',
                iconSortAsc: 'fa fa-sort-asc',
                iconSortDesc: 'fa fa-sort-desc',
            };
            $('#usertable, #partitiontable').tablesorter({
                theme: 'bootstrap',
                headerTemplate: '{content} {icon}',
                sortList: [[0,0]],
                widgets: ['uitheme'],
            });
            $('#packagetable').tablesorter({
                theme: 'bootstrap',
                headerTemplate: '{content} {icon}',
                sortList: [[0,0]],
                headers: {3:{sorter:false}},
                widgets: ['uitheme'],
            });
            $('#packagetable').filterTable({
                inputSelector: '#packagetable-search',
            });
        })
    </script>
{% endblock %}

{% block content %}
    <div class="page-header">
        <h1>{{ minion.fqdn }}</h1>
    </div>

    <div class="row">
        <div class="col-md-12">

            <!-- tab navigation -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#general" aria-controls="general" role="tab" data-toggle="tab">General</a></li>
                <li role="presentation"><a href="#networks" aria-controls="networks" role="tab" data-toggle="tab">Networks</a></li>
                <li role="presentation"><a href="#packages" aria-controls="packages" role="tab" data-toggle="tab">Packages</a></li>
                <li role="presentation"><a href="#users" aria-controls="users" role="tab" data-toggle="tab">Users</a></li>
                <li role="presentation"><a href="#partitions" aria-controls="partitions" role="tab" data-toggle="tab">Partitions</a></li>
            </ul>

            <!-- tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane fade in active" id="general">
                    <div class="row">
                        <div class="col-md-8">
                            <i>Hier soll man in Zukunft eigenes Markdown hinterlegen können ...</i>
                        </div>
                        <div class="col-md-4">
                            <table class="table">
{'fraction_non_alphanumeric': 0.16865011900714044, 'fraction_numerical': 0.0051003060183611015, 'mean_word_length': 1.5825285338015804, 'pattern_counts': {'":': 0, '<': 95, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '516283', 'n_tokens_mistral': 1639, 'n_tokens_neox': 1522, 'n_words': 296}