{% load i18n %}
{% if hide_disabled_links and est.task.taskpool.status == est.task.taskpool.Status.DISABLED and est.status != est.Status.COMPLETE and est.status != est.Status.REJECTED and est.status != est.Status.TIMEOUT %} {# est.status in (est.Status.ASSIGNED, est.Status.SKIPPED) #} {{ est }} {% else %} {% if est.is_timeout %} {{ est }} {% elif tab == 'finished' and user.role != user.Role.ASSESSOR and est.status == est.Status.COMPLETE and est.task.status != est.task.Status.REGULAR and est.task.taskpool.status == est.task.taskpool.Status.FINISHED %} {{ est }} {% elif tab == 'checked' %} {{ est }} - {{ est.task.request }} {% else %} {% if est.status == est.Status.ASSIGNED %} {% elif est.status == est.Status.COMPLETE %} {% elif est.status == est.Status.REJECTED %} {% else %} {# est.status == est.Status.SKIPPED #} {% endif %} {{ est }} {% endif %} {% endif %}
{% if est.status == est.Status.ASSIGNED and est.comment %}
{% trans 'Question' %}:
{{ est.comment|truncatechars:100 }}
{% if est.answer %}
{% trans 'Answer' %}:
{{ est.answer|truncatechars:100 }}
{% endif %} {% elif est.status == est.Status.SKIPPED %}
{{ est.user.login }}:
{{ est.comment|truncatechars:100 }}
{% elif tab == 'checked' %}
{% for crit_name, val, aa_val, sign_err in est.get_correction_value %} {% endfor %}
{% trans crit_name|capfirst|slice:":1" %}: {% trans val|title|slice:":1" %} {% if val != aa_val %} → {% trans aa_val|title|slice:":1" %} {% endif %}
{{ est.correction.aadmin_est.comment }}
{% endif %} {% if tab == 'finished' %} {% if est.is_timeout %} {% trans 'Timeout' %} {% else %} {{ est.complete_time }} {% endif %} {% elif tab == 'checked' %} {% load regionname %} {{ est.task.region|regionname }} {{ est.comment }} {{ est.correction.time }} {% endif %}