<commit_before>{% import '_sub_pretty.twig' as pretty %}
{% include '_header.twig' %}

<div class="row-fluid">
    <div class="span9">
        <h1><strong>Change Log</strong> » {{ entry.title }}</h1>
        <p class="pager-inline">
            {% if prevEntry %}
            <a class="pager-back" href="{{ path('changelogdetails', { 'contenttype': contenttype, 'contentid': content.id, 'id': prevEntry.id }) }}">
                « previous change
            </a>
            {% else %}
            <span class="pager-back">at first change</span>
            {% endif %}
            <a class="pager-middle" href="{{ path('changeloglist', { 'contenttype': contenttype, 'contentid': content.id }) }}">
                show all changes
            </a>
            {% if nextEntry %}
            <a class="pager-forward" href="{{ path('changelogdetails', { 'contenttype': contenttype, 'contentid': content.id, 'id': nextEntry.id }) }}">
                next change »
            </a>
            {% else %}
            <span class="pager-forward">at last change</span>
            {% endif %}
        </p>
        <h3>{{ pretty.changelogmutation(entry.effectiveMutationType) }} {{ pretty.datetime(entry.date) }} by {{ entry.username }}</h3>
        <table class="table table-bordered table-condensed table-full-width">
            <thead>
            <tr><th>field</th><th>old value</th><th>new value</th></tr>
            </thead>
            <tbody>
            {% for key, fieldDiff in entry.parsedDiff %}
            <tr>
                <td>{{ key }}</td>
                <td class="source-code">{{ fieldDiff[0] }}</td>
                <td class="source-code">{{ fieldDiff[1] }}</td>
            </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
</div>

{% include '_footer.twig' %}

<commit_msg>Fixed: changelog crashed when viewing entries for deleted pages<commit_after>{% import '_sub_pretty.twig' as pretty %}
{% include '_header.twig' %}

<div class="row-fluid">
    <div class="span9">
        <h1><strong>Change Log</strong> » {{ entry.title }}</h1>
        <p class="pager-inline">
            {% if prevEntry %}
            <a class="pager-back" href="{{ path('changelogdetails', { 'contenttype': contenttype, 'contentid': entry.contentid, 'id': prevEntry.id }) }}">
                « previous change
            </a>
            {% else %}
            <span class="pager-back">at first change</span>
            {% endif %}
            <a class="pager-middle" href="{{ path('changeloglist', { 'contenttype': contenttype, 'contentid': entry.contentid }) }}">
                show all changes
            </a>
            {% if nextEntry %}
            <a class="pager-forward" href="{{ path('changelogdetails', { 'contenttype': contenttype, 'contentid': entry.contentid, 'id': nextEntry.id }) }}">
                next change »
            </a>
            {% else %}
            <span class="pager-forward">at last change</span>
            {% endif %}
        </p>
        <h3>{{ pretty.changelogmutation(entry.effectiveMutationType) }} {{ pretty.datetime(entry.date) }} by {{ entry.username }}</h3>
        <table class="table table-bordered table-condensed table-full-width">
            <thead>
            <tr><th>field</th><th>old value</th><th>new value</th></tr>
            </thead>
            <tbody>
            {% for key, fieldDiff in entry.parsedDiff %}
            <tr>
                <td>{{ key }}</td>
                <td class="source-code">{{ fieldDiff[0] }}</td>
                <td class="source-code">{{ fieldDiff[1] }}</td>
            </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
</div>

{% include '_footer.twig' %}


{'fraction_non_alphanumeric': 0.18023099650819233, 'fraction_numerical': 0.0037604082728982004, 'mean_word_length': 1.9207843137254903, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '4600846', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1083, 'n_words': 242}