<commit_before>{% extends 'site_base.html' %}

{% load i18n %}
{% load bootstrap %}

{% block head_title %}{{task}} history{% endblock %}

{% block body %}
    <div class="row">
        <div class="col-md-12">
<h1>{{task}} history</h1>

<a href="{{task.get_absolute_url}}">back</a>

    <table class="table table-striped">
    <thead>
    <tr>
    <th>Date-time</th>
    <th>Full name</th>
    <th>Description</th>
    <th>Holder</th>
    <th>State</th>
    <th>Milestone</th>
    <th>Finished fact</th>
    <th>Important</th>
    <th>Kind</th>
    <th>User</th>
    </tr>
    </thead>
    <tbody>
        {% for v in versions %}
        <tr>
        <td>{{v.revision.date_created}}</td>
        <td>{{v.field_dict.fullname}}</td>
        <td>{{v.field_dict.description|safe}}</td>
        <td>{{v.field_dict.holder_user}}</td>
        <td>{{v.field_dict.state}}</td>
        <td>{{v.field_dict.milestone}}</td>
        <td>{{v.field_dict.finished_fact_at|date}}</td>
        <td>{% if v.field_dict.important %}<i class="fa fa-exclamation-triangle" style="color:red"></i>{%endif%}</td>
        <td>{{v.field_dict.kind}}</td>
        <td><a href="{% url 'profiles_detail' pk=v.revision.user.profile.id %}">{{v.revision.user.profile}}</a></td>
        </tr>
        {% endfor %}

    </tbody>
    <table>  


</div>
</div>
  
{% endblock %}<commit_msg>Task history page - show id for foreign keys<commit_after>{% extends 'site_base.html' %}

{% load i18n %}
{% load bootstrap %}

{% block head_title %}{{task}} history{% endblock %}

{% block body %}
    <div class="row">
        <div class="col-md-12">
<h1>{{task}} history</h1>

<a href="{{task.get_absolute_url}}">back</a>

    <table class="table table-striped">
    <thead>
    <tr>
    <th>Date-time</th>
    <th>Full name</th>
    <th>Description</th>
    <th>Holder</th>
    <th>State</th>
    <th>Milestone</th>
    <th>Finished fact</th>
    <th>Important</th>
    <th>Kind</th>
    <th>User</th>
    </tr>
    </thead>
    <tbody>
        {% for v in versions %}
        <tr>
        <td>{{v.revision.date_created}}</td>
        <td>{{v.field_dict.fullname}}</td>
        <td>{{v.field_dict.description|safe}}</td>
        <td><a href="{% url 'profiles_detail' pk=v.field_dict.holder_id %}">{{v.field_dict.holder_id}}</a></td>
        <td>{{v.field_dict.state}}</td>
        <td>{{v.field_dict.milestone_id}}</td>
        <td>{{v.field_dict.finished_fact_at|date}}</td>
        <td>{% if v.field_dict.important %}<i class="fa fa-exclamation-triangle" style="color:red"></i>{%endif%}</td>
        <td>{{v.field_dict.kind_id}}</td>
        <td><a href="{% url 'profiles_detail' pk=v.revision.user.profile.id %}">{{v.revision.user.profile}}</a></td>
        </tr>
        {% endfor %}

    </tbody>
    <table>


</div>
</div>

{% endblock %}
{'fraction_non_alphanumeric': 0.2315112540192926, 'fraction_numerical': 0.004287245444801715, 'mean_word_length': 2.8043478260869565, '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': '5385226', 'n_tokens_mistral': 1152, 'n_tokens_neox': 1056, 'n_words': 162}