<commit_before>{% extends "base.html" %}

{% load possessive %}
{% load split %}
{% load get_option %}

{% comment %}
context variables:
    server_list
    username
    server_type
{% endcomment %}

{% block title %}upTee - {% if username %}{{ username|possessive }} servers{% else %}Server list{% endif %}{% endblock title %}

{% block breadcrumb %}
    {% url 'server_list__type' 'online' as url_servers_type_online %}
    {% url 'server_list__type' 'offline' as url_servers_type_offline %}
    {% url 'user_server_list' username as url_user_servers %}
    {% url 'user_server_list__type' username 'online' as url_user_servers_type_online %}
    {% url 'user_server_list__type' username 'offline' as url_user_servers_type_offline %}

    {{ block.super }}
    {% load breadcrumb_tags %}

    {% add_crumb 'Servers' 'server_list' %}
    {% if request.path == url_servers_type_online %}
        {% add_crumb 'Online servers' url_servers_type_online %}
    {% elif request.path == url_servers_type_offline %}
        {% add_crumb 'Offline servers' url_servers_type_offline %}
    {% endif %}
    {% if username %}
        {% with user_server_name=username|possessive|add:' servers' %}
            {% if request.path == url_user_servers %}
                {% add_crumb user_server_name url_user_servers %}
            {% elif request.path == url_user_servers_type_online %}
                {% add_crumb user_server_name url_user_servers %}
                {% add_crumb 'Online servers' url_user_servers_type_online %}
            {% elif request.path == url_user_servers_type_offline %}
                {% add_crumb user_server_name url_user_servers %}
                {% add_crumb 'Offline servers' url_user_servers_type_offline %}
            {% endif %}
        {% endwith %}
    {% endif %}
{% endblock %}

{% block link_list %}

<div id="link_list">
    <a href="{% if username %}{% url 'user_server_list' username %}{% else %}{% url 'server_list' %}{% endif %}">All</a>
    |
    <a href="{% if username %}{% url 'user_server_list' username %}{% else %}{% url 'server_list' %}{% endif %}type:online">Online</a>
    |
    <a href="{% if username %}{% url 'user_server_list' username %}{% else %}{% url 'server_list' %}{% endif %}type:offline">Offline</a>
</div>

{% endblock link_list %}

{% block content %}

{% for server in server_list %}


    <div class="contentBox w300 {% if server.is_online %}green{% else %}red{% endif %}">
        <div class="contentHeadline {% if server.is_online %}green{% else %}red{% endif %}">{{ server|get_option:'sv_name' }}</div>
        <div class="content">

        <table class="small">
            <tbody>
                    <commit_msg>fixed a bug in the serverlist<commit_after>{% extends "base.html" %}

{% load possessive %}
{% load split %}
{% load get_option %}

{% comment %}
context variables:
    server_list
    username
    server_type
{% endcomment %}

{% block title %}upTee - {% if username %}{{ username|possessive }} servers{% else %}Server list{% endif %}{% endblock title %}

{% block breadcrumb %}
    {% url 'server_list__type' 'online' as url_servers_type_online %}
    {% url 'server_list__type' 'offline' as url_servers_type_offline %}
    {% url 'user_server_list' username as url_user_servers %}
    {% url 'user_server_list__type' username 'online' as url_user_servers_type_online %}
    {% url 'user_server_list__type' username 'offline' as url_user_servers_type_offline %}

    {{ block.super }}
    {% load breadcrumb_tags %}

    {% add_crumb 'Servers' 'server_list' %}
    {% if request.path == url_servers_type_online %}
        {% add_crumb 'Online servers' url_servers_type_online %}
    {% elif request.path == url_servers_type_offline %}
        {% add_crumb 'Offline servers' url_servers_type_offline %}
    {% endif %}
    {% if username %}
        {% with user_server_name=username|possessive|add:' servers' %}
            {% if request.path == url_user_servers %}
                {% add_crumb user_server_name url_user_servers %}
            {% elif request.path == url_user_servers_type_online %}
                {% add_crumb user_server_name url_user_servers %}
                {% add_crumb 'Online servers' url_user_servers_type_online %}
            {% elif request.path == url_user_servers_type_offline %}
                {% add_crumb user_server_name url_user_servers %}
                {% add_crumb 'Offline servers' url_user_servers_type_offline %}
            {% endif %}
        {% endwith %}
    {% endif %}
{% endblock %}

{% block link_list %}

<div id="link_list">
    <a href="{% if username %}{% url 'user_server_list' username %}{% else %}{% url 'server_list' %}{% endif %}">All</a>
    |
    <a href="{% if username %}{% url 'user_server_list' username %}{% else %}{% url 'server_list' %}{% endif %}type:online">Online</a>
    |
    <a href="{% if username %}{% url 'user_server_list' username %}{% else %}{% url 'server_list' %}{% endif %}type:offline">Offline</a>
</div>

{% endblock link_list %}

{% block content %}

{% for server in server_list %}


    <div class="contentBox w400 {% if server.is_online %}green{% else %}red{% endif %}">
        <div class="contentHeadline {% if server.is_online %}green{% else %}red{% endif %}">{{ server|get_option:'sv_name' }}</div>
        <div class="content">

        <table class="small pw100">
            <tbody>
                    
{'fraction_non_alphanumeric': 0.1500185666542889, 'fraction_numerical': 0.0016709988860007428, 'mean_word_length': 3.2856006364359587, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '242591', 'n_tokens_mistral': 1908, 'n_tokens_neox': 1693, 'n_words': 380}