<commit_before>{% extends "projector/task/base.html" %}

{% load markup %}

{% block extra_head %}
    {{ block.super }}
    {#<script type="text/javascript" src="/static/js/projector/task_action_form.js"></script>#}
    <script type="text/javascript" src="{{ MEDIA_URL }}richtemplates/js/action_form.js"></script>
    {{ action_form.media }}
{% endblock %}

{% load i18n %}
{% load attachments_tags %}

{% block col_left %}{{ block.super }}
<div class="richtemplates-panel">
    <h5>Task changes</h5>
    <div class="richtemplates-panel-content">
        <ul class="nav-vertical">
            {% for revision in task.revisions %}
            {% if not forloop.first %}
            <li><a href="{{ revision.task.get_absolute_url }}#revision:{{ revision.revision }}">{{ revision }} {% trans "by" %} {{ revision.author }} {% trans "at" %} {{ revision.created_at|date:"Y-m-d" }}</a></li>
            {% endif %}
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}

{% block col_main_title %}#{{ task.id }}: {{ task.summary }}{% endblock %}
{% block col_main_content %}
    <h1>{% trans "Task" %} {{ task.id }}: {{ task.summary }}</h1>
    <h2>{{ task.status }} {% if not task.status.is_resolved %}({% trans "opened for" %} {{ task.created_at|timesince }}){% endif %}</h2>
    <ul class="nav-inline">
        <li><a class="button-link" href="{{ task.project.get_task_list_url }}">{% trans "Return to task list" %}</a></li>
        <li><a class="button-link" href="{{ task.get_edit_url }}">{% trans "Edit" %}</a></li>
    </ul>

    <div class="task-block">
        <table class="task-block-properties">
            <tbody>
                <tr>
                    <th>{% trans "Task" %} Id</th>
                    <td>{{ task.id }}</td>
                </tr>
                {% comment %}
                <tr>
                    <th>{% trans "Revision" %}</th>
                    <td>{{ task.revision }}</td>
                </tr>
                {% endcomment %}
                <tr>
                    <th>{% trans "Project" %}</th>
                    <td><a href="{{ task.project.get_absolute_url }}">{{ task.project }}</a></td>
                </tr>
                <tr>
                    <th>{% trans "Component" %}</th>
                    <td>{{ task.component }}</td>
                </tr>
                <tr>
                    <th>{% trans "Type" %}</th>
                    <td>{{ task.type }}</td>
                </tr>
                <tr>
                    <th>{% trans "Milestone" %}</th>
                    <td>{{ task.milestone|default:"-" }}</td>
                </tr>
                <tr>
                    <th>{% trans "Summary" %}</th>
                    <td>{{ task.summary }}</td>
                </tr>
                <tr>
                    <th>{% trans "Reported by" %}</th>
                    <td>{{ task.author }}</td>
                </tr>
                <tr>
                    <th>{% trans "Reported date" %}</th>
                    <td>{{ task.created_at|date:"Y-m-d H:i:s" }}</td><commit_msg>Added linking to milestones at task detail page<commit_after>{% extends "projector/task/base.html" %}

{% load markup %}

{% block extra_head %}
    {{ block.super }}
    {#<script type="text/javascript" src="/static/js/projector/task_action_form.js"></script>#}
    <script type="text/javascript" src="{{ MEDIA_URL }}richtemplates/js/action_form.js"></script>
    {{ action_form.media }}
{% endblock %}

{% load i18n %}
{% load attachments_tags %}

{% block col_left %}{{ block.super }}
<div class="richtemplates-panel">
    <h5>Task changes</h5>
    <div class="richtemplates-panel-content">
        <ul class="nav-vertical">
            {% for revision in task.revisions %}
            {% if not forloop.first %}
            <li><a href="{{ revision.task.get_absolute_url }}#revision:{{ revision.revision }}">{{ revision }} {% trans "by" %} {{ revision.author }} {% trans "at" %} {{ revision.created_at|date:"Y-m-d" }}</a></li>
            {% endif %}
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}

{% block col_main_title %}#{{ task.id }}: {{ task.summary }}{% endblock %}
{% block col_main_content %}
    <h1>{% trans "Task" %} {{ task.id }}: {{ task.summary }}</h1>
    <h2>{{ task.status }} {% if not task.status.is_resolved %}({% trans "opened for" %} {{ task.created_at|timesince }}){% endif %}</h2>
    <ul class="nav-inline">
        <li><a class="button-link" href="{{ task.project.get_task_list_url }}">{% trans "Return to task list" %}</a></li>
        <li><a class="button-link" href="{{ task.get_edit_url }}">{% trans "Edit" %}</a></li>
    </ul>

    <div class="task-block">
        <table class="task-block-properties">
            <tbody>
                <tr>
                    <th>{% trans "Task" %} Id</th>
                    <td>{{ task.id }}</td>
                </tr>
                {% comment %}
                <tr>
                    <th>{% trans "Revision" %}</th>
                    <td>{{ task.revision }}</td>
                </tr>
                {% endcomment %}
                <tr>
                    <th>{% trans "Project" %}</th>
                    <td class="show-tipsy" title="{{ task.project.description }}">
                        <a href="{{ task.project.get_absolute_url }}">{{ task.project }}</a>
                    </td>
                </tr>
                <tr>
                    <th>{% trans "Component" %}</th>
                    <td>{{ task.component }}</td>
                </tr>
                <tr>
                    <th>{% trans "Type" %}</th>
                    <td>{{ task.type }}</td>
                </tr>
                <tr>
                    <th>{% trans "Milestone" %}</th>
                    {% if task.milestone %}
                    <td class="show-tipsy" title="{{ task.milestone.description }}">
                        <a href="{{ task.milestone.get_absolute_url }}">{{ task.milestone }}</a>
                    </td>
                    {% else %}
                    <td>-</td>
                    {% endif %}
                </tr>
                <tr>
                    <th>{% trans "Summary" %}</th>
                    <td>{{ task.summary }}</td>
                </tr>
                <tr>
                    <th>{% trans "Reported by" %}</th>
                    <td>{{ task.author }}</td>
                </tr>
                <tr>
                    <th>{% trans "Reported date" %}</th>
                    <td>{{ task.created_at|date:"Y-m-d H:i:s" }}</td>
{'fraction_non_alphanumeric': 0.2011002444987775, 'fraction_numerical': 0.0024449877750611247, 'mean_word_length': 1.526051717483597, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, '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': '1683569', 'n_tokens_mistral': 2142, 'n_tokens_neox': 1931, 'n_words': 413}