{% extends "base.html" %} {% load i18n static review_extras %} {% block head %} {% endblock %} {% block title %}{% blocktrans with pk=review_request.pk %}Report — Review #{{ pk }}{% endblocktrans %}{% endblock %} {% block page_id %}page-review-report{% endblock %} {% block contents %}

{% blocktrans with pk=review_request.pk title=review_request.title %}Report — Review #{{ pk }}: {{ title }}{% endblocktrans %} {% state_badge review_request.state review_request.get_state_display %}

{% blocktrans with requester=review_request.requester.username created=review_request.created_at|date:"Y-m-d H:i" %}Requested by {{ requester }} on {{ created }}{% endblocktrans %}

{% trans "Reviewers" %}
{{ review_request.reviewers.count }}
{% trans "Participation" %}
{% widthratio metrics.participation 1 100 %}%
{% trans "Approvals" %}
{{ metrics.votes.approved }}
{% trans "Rejections" %}
{{ metrics.votes.rejected }}
{% trans "Changes requested" %}
{{ metrics.votes.needs_changes }}
{% if metrics.time_to_decision %}
{% trans "Time to decision" %}
{% format_duration metrics.time_to_decision %}
{% endif %}

{% trans "Per-case decisions" %}

{% if metrics.items %}
{% for decision, count in metrics.items.items %} {% endfor %}
{% trans "Decision" %}{% trans "Count" %}
{% decision_badge decision %} {{ count }}
{% else %}

{% trans "No cases attached to this request." %}

{% endif %}

{% trans "Reviewer participation" %}

{% for reviewer in review_request.reviewers.all %} {% with vote=review_request.votes.all|vote_for:reviewer %} {% if vote %} {% else %} {% endif %} {% endwith %} {% endfor %}
{% trans "Reviewer" %} {% trans "Decision" %} {% trans "Voted at" %}
{{ reviewer.username }}{% decision_badge vote.decision vote.get_decision_display %} {{ vote.voted_at|date:"Y-m-d H:i" }}{% trans "Pending" %}
{# Threaded activity history with per-change comment diffs #} {% if activity %}

{% trans "Activity history" %}

{% include "tcms_review/_activity.html" %}
{% endif %}
{% endblock %}