<commit_before>{% extends '_base.html' %}
{% load helpers %}
{% block content %}
      {% if request.user.is_authenticated %}
      <div class="pull-right">
        <a href="{% url 'peering:peering_session_edit' pk=peering_session.pk %}" class="btn btn-warning">
          <i class="fas fa-edit" aria-hidden="true"></i> Edit
        </a>
        <a href="{% url 'peering:peering_session_delete' pk=peering_session.pk %}" class="btn btn-danger">
          <i class="fas fa-trash" aria-hidden="true"></i> Delete
        </a>
      </div>
      {% endif %}
      <h1>{% block title %}{{ peering_session }}{% endblock %}</h1>
      <div class="row">
        <div class="col-md-6">
          <div class="panel panel-default">
            <div class="panel-heading">
              <strong>Peering Session Details</strong>
            </div>
            <table class="table table-hover panel-body attr-table">
              <tr>
                <td>Internet Exchange</td>
                <td>{{ peering_session.internet_exchange }}</td>
              </tr>
              <tr>
                <td>AS Name</td>
                <td>{{ peering_session.autonomous_system.name }}</td>
              </tr>
              <tr>
                <td>ASN</td>
                <td>{{ peering_session.autonomous_system.asn }}</td>
              </tr>
              <tr>
                <td>IP Address</td>
                <td>{{ peering_session.ip_address }}</td>
              </tr>
            </table>
          </div>
        </div>
        <div class="col-md-6">
          <div class="panel panel-default">
            <div class="panel-heading">
              <strong>Comments</strong>
            </div>
            <div class="panel-body">
              {% if peering_session.comment %}
              {{ peering_session.comment|markdown }}
              {% else %}
              <span class="text-muted">None</span>
              {% endif %}
            </div>
          </div>
        </div>
      </div>
{% endblock %}<commit_msg>Show if peering session is enabled in details.<commit_after>{% extends '_base.html' %}
{% load helpers %}
{% block content %}
      {% if request.user.is_authenticated %}
      <div class="pull-right">
        <a href="{% url 'peering:peering_session_edit' pk=peering_session.pk %}" class="btn btn-warning">
          <i class="fas fa-edit" aria-hidden="true"></i> Edit
        </a>
        <a href="{% url 'peering:peering_session_delete' pk=peering_session.pk %}" class="btn btn-danger">
          <i class="fas fa-trash" aria-hidden="true"></i> Delete
        </a>
      </div>
      {% endif %}
      <h1>{% block title %}{{ peering_session }}{% endblock %}</h1>
      <div class="row">
        <div class="col-md-6">
          <div class="panel panel-default">
            <div class="panel-heading">
              <strong>Peering Session Details</strong>
              <span class="pull-right" data-toggle="tooltip" data-placement="top" title="Peering session is {% if peering_session.enabled %}enabled{% else %}disabled{% endif %}.">
                <i class="fas fa-circle {% if peering_session.enabled %}text-success{% else %}text-danger{% endif %}"></i>
              </span>
            </div>
            <table class="table table-hover panel-body attr-table">
              <tr>
                <td>Internet Exchange</td>
                <td>{{ peering_session.internet_exchange }}</td>
              </tr>
              <tr>
                <td>AS Name</td>
                <td>{{ peering_session.autonomous_system.name }}</td>
              </tr>
              <tr>
                <td>ASN</td>
                <td>{{ peering_session.autonomous_system.asn }}</td>
              </tr>
              <tr>
                <td>IP Address</td>
                <td>{{ peering_session.ip_address }}</td>
              </tr>
            </table>
          </div>
        </div>
        <div class="col-md-6">
          <div class="panel panel-default">
            <div class="panel-heading">
              <strong>Comments</strong>
            </div>
            <div class="panel-body">
              {% if peering_session.comment %}
              {{ peering_session.comment|markdown }}
              {% else %}
              <span class="text-muted">None</span>
              {% endif %}
            </div>
          </div>
        </div>
      </div>
{% endblock %}
{% block javascript %}
    <script>
    $(function() {
      $('[data-toggle="tooltip"]').tooltip();
    });
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.16659311562224183, 'fraction_numerical': 0.00176522506619594, 'mean_word_length': 1.6187175043327557, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '6330422', 'n_tokens_mistral': 1416, 'n_tokens_neox': 1316, 'n_words': 270}