<commit_before>{% extends bap.layout %}
{% import 'OroUIBundle::macros.html.twig' as macros %}

{% block content %}
<div class="layout-content">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th>Author</th>
                <th>Date</th>
                <th>Version</th>
                <th>Old value</th>
                <th>New value</th>
            </tr>
        </thead>
        <tbody>
            {% for entry in history %}
            <tr>
                <td>{{ entry.id }}</td>
                <td><strong>{{ entry.username }}</strong></td>
                <td>{{ macros(entry.loggedAt) }}</td>
                <td>{{ entry.version }}</td>
                <td>
                    {% for key, value in entry.data %}
                        {{ key }}: {{ value }}<br />
                    {% endfor %}
                </td>
                <td></td>
            </tr>
            {% else %}
            <tr>
                <td colspan="100%">{{ 'No records found'|trans }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}<commit_msg>BAP-623: Changes history for entity<commit_after>{% extends bap.layout %}
{% import 'OroUIBundle::macros.html.twig' as macros %}

{% block content %}
<div class="layout-content">
    <table class="table table-striped">
        <thead>
            <tr>
                <th style="width: 40px;">#</th>
                <th style="width: 100px;">Author</th>
                <th style="width: 100px;">Date</th>
                <th style="width: 50px;">Version</th>
                <th>Changed values</th>
            </tr>
        </thead>
        <tbody>
            {% for entry in history %}
            <tr>
                <td>{{ entry.id }}</td>
                <td><strong>{{ entry.username }}</strong></td>
                <td>{{ macros.time(entry.loggedAt) }}</td>
                <td>{{ entry.version }}</td>
                <td>
                    {% for key, value in entry.data %}
                        {{ key }}: {{ value.timestamp is defined ? macros.time(value) : value }}<br />
                    {% endfor %}
                </td>
            </tr>
            {% else %}
            <tr>
                <td colspan="100%">{{ 'No records found'|trans }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.17782340862423, 'fraction_numerical': 0.0078028747433264885, 'mean_word_length': 1.2025316455696202, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5433761', 'n_tokens_mistral': 788, 'n_tokens_neox': 685, 'n_words': 155}