{% extends "core/index.html" %} {% load i18n %} {% block Title %}{% trans 'Estimation' %}{% endblock %} {% block Scripts %} {% endblock %} {% block Caption %}{% trans 'Estimation' %}{% endblock %} {% block Content %}
00:00:00
{{ task.taskpool.kind_pool }} {% with task=est.task snip_tpls_ext=snip_tpls_ext %} {% if task.taskpool.kind == task.taskpool.Type.BLIND and yauser.core_user == est.user %} {% if task.taskpool.kind_pool == task.taskpool.TypePool.RCA %} {% with show_pools=False showMediaContent=True %} {% include 'core/snippet_pair.html' %} {% endwith %} {% else %} {% with show_pools=False showMediaContent=False %} {% include 'core/snippet_pair.html' %} {% endwith %} {% endif %} {% else %} {% if task.taskpool.kind_pool == task.taskpool.TypePool.RCA %} {% with show_pools=True showMediaContent=True %} {% include 'core/snippet_pair.html' %} {% endwith %} {% else %} {% with show_pools=True showMediaContent=False %} {% include 'core/snippet_pair.html' %} {% endwith %} {% endif %} {% endif %} {% endwith %} {% if yauser.core_user != est.user %} {% trans 'Task pool' %}: {{ est.task.taskpool.title }} {% endif %}
{% if est.comment %}
{% if est.answer or est.status == est.Status.SKIPPED %} {% trans 'Question' %}: {% else %} {% trans 'Comment' %}: {% endif %}
{{ est.comment }}
{% if est.answer and est.status != est.Status.SKIPPED %}
{% trans 'Answer' %}:
{{ est.answer }}
{% endif %} {% endif %} {% if est.status == est.Status.ASSIGNED or est.status == est.Status.SKIPPED %} {% if yauser.core_user != est.user and est.status == est.Status.SKIPPED %}
{% trans 'Skipped by' %} {{ est.user.login }}
{{ est_form }}
{% csrf_token %}
{% else %}
{% include 'core/estimation_form.html' %}
{% if prev_criterion %}
{% endif %} {% if next_criterion %}
{% endif %}
{% endif %} {% elif est.status == est.Status.COMPLETE %}
{% if yauser.core_user == est.user %} {% trans 'You have already solved this task.' %} {% else %} {% trans 'Estimation made by' %} {{ est.user.login }} {% endif %}
{% load crit_name_cleaner %} {% if est_can_be_changed %}
{% include 'core/estimation_form.html' %}
{% else %} {% with value=est.unpack_value %} {% for crit, crit_val in value %}
{% trans crit|crit_name_cleaner|capfirst %}:
{% trans crit_val|title %}
{% endfor %} {% endwith %} {% endif %}
{% elif est.status == est.Status.REJECTED %}
{% if yauser.core_user == est.user %} {% trans 'You have rejected this task.' %} {% else %} {% trans 'Rejected by' %} {{ est.user.login }} {% endif %}
{% endif %}
{% endblock %}