<commit_before>{% extends "mozdns/mozdns_detail.html" %}

{% block dns_content %}

<div class='dns-title'>PTR {{ object.name }}</div>
    {% if object.domain %}
        <a class="btn" href="{{ object.domain.get_absolute_url() }}">View Domain</a>
    {% endif %}

        <a class="btn" href="{{ object.get_edit_url() }}">Edit</a>
        <a class="btn" href="{{ object.get_delete_url() }}">Delete</a>

    {% from "mozdns/tables.html" import render_table %}

    <table class="table">
        <thead>
            {% for item, value in object.details() %}
                <th>{{ item }}</th>
            {% endfor %}
        </thead>

        <tbody>
            <tr>
            {% for item, value in object.details() %}
                <td>
                    {% if loop.last %}
                        {% if object.data_domain %}
                        {{value}}<br><a href='{{ object.data_domain.get_absolute_url() }}'>View {{object.data_domain.name}}</a>
                        {% else %}
                            {{ value }}
                        {% endif %}
                    {% else %}
                        {{ value }}
                    {% endif %}
                </td>
            {% endfor %}<commit_msg>link back the reverse domain of the PTR<commit_after>{% extends "mozdns/mozdns_detail.html" %}

{% block dns_content %}

<div class='dns-title'>PTR {{ object.name }}</div>
    {% if object.reverse_domain %}
        <a class="btn" href="{{ object.reverse_domain.get_absolute_url() }}">View Reverse Domain</a>
    {% endif %}

        <a class="btn" href="{{ object.get_edit_url() }}">Edit</a>
        <a class="btn" href="{{ object.get_delete_url() }}">Delete</a>

    {% from "mozdns/tables.html" import render_table %}

    <table class="table">
        <thead>
            {% for item, value in object.details() %}
                <th>{{ item }}</th>
            {% endfor %}
        </thead>

        <tbody>
            <tr>
            {% for item, value in object.details() %}
                <td>
                    {% if loop.last %}
                        {% if object.data_domain %}
                        {{value}}<br><a href='{{ object.data_domain.get_absolute_url() }}'>View {{object.data_domain.name}}</a>
                        {% else %}
                            {{ value }}
                        {% endif %}
                    {% else %}
                        {{ value }}
                    {% endif %}
                </td>
            {% endfor %}
{'fraction_non_alphanumeric': 0.17145135566188197, 'fraction_numerical': 0.0, 'mean_word_length': 1.410182516810759, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '7646539', 'n_tokens_mistral': 785, 'n_tokens_neox': 677, 'n_words': 148}