{% load i18n %} {% load yauth %} {% load regionname %} {% load safemarkup %} {% load hidereferer %} {% load percentage %} {% load unquote %} {% trans 'both'|title as both %} {% cycle taskpool.second_pool.title taskpool.first_pool.title both as est_title silent %} {% for login, aggregated_counts, different, opposite, est_infos, has_comments in user_aggregated %} {% with user_est_count=est_infos|length %} {{ login }} {% trans 'Request count' %}: {{ user_est_count }} {% if yauser.core_user.role == yauser.core_user.Role.ANALYST %} {% for est_val, est_icon in user_aggregated.0.4.0.0.VALUE_ICONS %}
{% cycle est_title %}
{% endfor %} {% for criterion, counter in aggregated_counts %} {% for digit, count in counter %}
{{ count }} {{ count|percentage:user_est_count }}
{% endfor %} {% endfor %} {% if has_comments %} {% trans 'Has comment' %} {% endif %} {% else %} {% for criterion, counter in aggregated_counts %}
{% trans criterion|title|slice:'1' %}:
{% for digit, count in counter %}
{{ count }} {{ count|percentage:user_est_count }}
{% endfor %}
{% endfor %} {% for diff in different %}
{{ diff }} {{ diff|percentage:user_est_count }}
{% endfor %} {% for opp in opposite %}
{{ opp }} {{ opp|percentage:user_est_count }}
{% endfor %} {% endif %} {% for est, est_diff, est_opp in est_infos %} {{ est.task.request }} ({{ est.task.region|regionname }}) {% if est.task.first_snippet.data.hilitedurl %}{{ est.task.first_snippet.data.hilitedurl|safemarkup }}{% else %}{{ est.task.first_snippet.data.url|unquote }}{% endif %} {% if yauser.core_user.role == yauser.core_user.Role.ANALYST %} {% for digit in est.digits %} {% for possible_digit, icon_name in est.VALUE_ICONS %} {% cycle est_title %} {% if digit == possible_digit %} {% endif %} {% endfor %} {% endfor %} {{ est.comment }} {% else %} {% for criterion in est.Criterion.NAMES %}
{% trans criterion|title|slice:'1' %}:
{% endfor %} {% with digits=est.digits %} {% for digit in digits %} {% with forloop.counter as digit_id %}
{% for possible_digit, val_name in est.VALUE_NAMES %}
{% if digit == possible_digit %} 1 {% else %} {% for corr_digit in est.corrected_digits %} {% if forloop.counter == digit_id %} {% if corr_digit == possible_digit %} 1 {% else %} 0 {% endif %} {% endif %} {% endfor %} {% endif %}
{% endfor %}
{% endwith %} {% endfor %} {% endwith %} {% for diff in est_diff %}
{{ diff }}
{% endfor %} {% for opp in est_opp %}
{{ opp }}
{% endfor %} {% endif %} {% endfor %} {% if user_est_count|divisibleby:2 %} {% endif %} {% endwith %} {% endfor %}