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

{% block title %}Business Process{% endblock %}
{% block smallheader %}view{% endblock %}
{% block largeheader %}Business Process{% endblock %}

{% block nav1 %}{{ block.super }}{% endblock %}
{% block nav2 %}<a href="{% url status.views.business_process_list %}">Business Process</a>{% endblock %}

{% load adagiostags %}

{% block content %}
    <style>
        .centralized_dashboard {
            width:  600px;
            margin-left: auto;
            margin-right: auto;

        }
        .bold {
            font-weight: bold;
        }
        .status_ok, .status_0 {
            color: #339966;
        }
        .status_warning, .status_1 {
            color: #f29d50;
        }

            /* line 297, /data/octostatus/app/assets/styles/basics.scss */
        .status_critical, .status_2 {
            color: #cc3300;
        }
        h4.dashboard_header {
            margin-top: 40px;

            margin-bottom: 10px;
        }
        .top-margin {
            margin-top: 20px;
        }

        /* Shamelessly stolen from github

/* line 186, /data/octostatus/app/assets/styles/basics.scss */
        #services {
            margin: 0 0 36px;
            border: 1px solid #e8e8e8;
            border-radius: 3px;
        }
            /* line 191, /data/octostatus/app/assets/styles/basics.scss */
        #services .service {
            padding: 8px 12px;
            overflow: hidden;
        }
            /* line 195, /data/octostatus/app/assets/styles/basics.scss */
        #services .service .name {
            float: left;
        }
            /* line 199, /data/octostatus/app/assets/styles/basics.scss */
        #services .service .status {
            float: right;
            font-weight: bold;
        }
            /* line 205, /data/octostatus/app/assets/styles/basics.scss */
        #services .service + .service {
            border-top: 1px solid #efefef;
        }

    </style>
    <style>
        /* Graphs list */
        .graphs_row {
        }
        .graph_notes {
            width: 100px;
            float: left;
        }
        .graph_image {
        }

    </style>

    <div id="content_div" class="centralized_dashboard">
        <h3 class="dashboard_header">{{ bp.display_name }} <span class="status_{{ bp.get_status }}">Status</span></h3>
        <div class="top-margin alert alert-{{ bp.css_hint }}">
            {% if bp.css_hint == 'success' %}
                All Systems are operational
            {% endif %}
            {% if bp.css_hint == 'warning' %}
                There are some minor problems
            {% endif %}
            {% if bp.css_hint == 'danger' %}
                We are currently dealing with problems
            {% endif %}
            {% if bp.css_hint == 'unknown' %}
                Some probes are returning status "unknown"
            {% endif %}
        </div>

        <h4 class="dashboard_header">More information</h4>
        {% if bp.notes %}
            <p>
                {{ bp.notes }}
            </p>
        {% endif %}

        {% if bp.get_processes %}
            <div class="table top-margin" id="services">
                {% for i in bp.get_processes %}
                    <div class="service" title="{{ i.process_type }}">
                        {% if i.process_type == 'businessprocess' %}
                            <a href="{% url adagios.status.views.business_process_view i.process_name %}">{{ i }}</a>
                        {% else %}
                            {{ i }}
                        {% endif %}
                        <span class="bold pull-right status_{{ i.get_human_friendly_status }}">{{ i.get_human_friendly_status }}</span>
                    </div>
                {% endfor %}
            </div><commit_msg>Business intelligence dashboard headers improved<commit_after>{% extends "base_status.html" %}

{% block title %}Business Process{% endblock %}
{% block smallheader %}view{% endblock %}
{% block largeheader %}Business Process{% endblock %}

{% block nav1 %}{{ block.super }}{% endblock %}
{% block nav2 %}<a href="{% url status.views.business_process_list %}">Business Process</a>{% endblock %}

{% load adagiostags %}

{% block content %}
    <style>
        .centralized_dashboard {
            width:  600px;
            margin-left: auto;
            margin-right: auto;

        }
        .bold {
            font-weight: bold;
        }
        .status_ok, .status_0 {
            color: #339966;
        }
        .status_warning, .status_1 {
            color: #f29d50;
        }

            /* line 297, /data/octostatus/app/assets/styles/basics.scss */
        .status_critical, .status_2 {
            color: #cc3300;
        }
        h4.dashboard_header {
            margin-top: 40px;

            margin-bottom: 10px;
        }
        .top-margin {
            margin-top: 20px;
        }

        /* Shamelessly stolen from github

/* line 186, /data/octostatus/app/assets/styles/basics.scss */
        #services {
            margin: 0 0 36px;
            border: 1px solid #e8e8e8;
            border-radius: 3px;
        }
            /* line 191, /data/octostatus/app/assets/styles/basics.scss */
        #services .service {
            padding: 8px 12px;
            overflow: hidden;
        }
            /* line 195, /data/octostatus/app/assets/styles/basics.scss */
        #services .service .name {
            float: left;
        }
            /* line 199, /data/octostatus/app/assets/styles/basics.scss */
        #services .service .status {
            float: right;
            font-weight: bold;
        }
            /* line 205, /data/octostatus/app/assets/styles/basics.scss */
        #services .service + .service {
            border-top: 1px solid #efefef;
        }

    </style>
    <style>
        /* Graphs list */
        .graphs_row {
        }
        .graph_notes {
            width: 100px;
            float: left;
        }
        .graph_image {
        }

    </style>

    <div id="content_div" class="centralized_dashboard">
        <h3 class="dashboard_header">{{ bp.display_name }} <span class="status_{{ bp.get_status }}">Status</span></h3>
        <div class="top-margin service alert alert-{{ bp.css_hint }}">
            {% if bp.css_hint == 'success' %}
                Overall health status
                <span class="bold pull-right">ok</span>
            {% endif %}
            {% if bp.css_hint == 'warning' %}
                Overall health status
                <span class="bold pull-right">minor problems</span>
            {% endif %}
            {% if bp.css_hint == 'danger' %}
                Overall health status
                <span class="bold pull-right">major problems</span>
            {% endif %}
            {% if bp.css_hint == 'unknown' %}
                Some probes are returning status "unknown"
            {% endif %}
        </div>

        <h4 class="dashboard_header">More information</h4>
        {% if bp.notes %}
            <p>
                {{ bp.notes }}
            </p>
        {% endif %}

        {% if bp.get_processes %}
            <div class="table top-margin" id="services">
                {% for i in bp.get_processes %}
                    <div class="service" title="{{ i.process_type }}">
                        {% if i.process_type == 'businessprocess' %}
                            <a href="{% url adagios.status.views.business_process_view i.process_name %}">{{ i }}</a>
                        {% else %}
                            {{ i }}
                        {% endif %}
                        <span class="bold pull-right status_{{ i.get_human_friendly_status }}">{{ i.get_human_friendly_status }}</span>
                    </div>
                {% endfor %}
            </div>
{'fraction_non_alphanumeric': 0.13444841675178754, 'fraction_numerical': 0.01710929519918284, 'mean_word_length': 1.4348772147963942, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '409806', 'n_tokens_mistral': 2496, 'n_tokens_neox': 2187, 'n_words': 479}