matejak/estimagus

View on GitHub
estimage/webapp/templates/epic_view_retrospective.html

Summary

Maintainability
Test Coverage
{% extends "general_retro.html" %}

{% import "utils.j2" as utils with context %}

{% block content %}
<div class="container">
    <div class="row">
    <h1>Overview</h1>
    {{ utils.task_metadata(epic) | indent(4) }}
    </div>
    <div class="row">
    <div class="col">
    <h2>Burndown</h2>
    <p>
        Total epic SP waiting to be completed at start of the sprint: {{ summary.initial_todo | round | int }}
    </p>
    <p>
        Last recorded data:
        <ul>
            <li>TODO: {{ summary.cutoff_todo | round | int }}</li>
            <li>In Progress / needs review: {{ summary.cutoff_underway | round | int }}</li>
            <li>Done: {{ summary.cutoff_done | round | int }}</li>
        </ul>
    </p>
    <p>
    <img src="{{ head_url_for('vis.visualize_epic_burndown', epic_name=epic.name, size="normal") }}" alt="Epic Burndown"/>
    </p>
    </div>
    <div class="col">
    <h2>Velocity</h2>
        {% if summary.total_days_with_velocity %}
    <p>
        <ul>
            <li>Average weekly when there was work: {{ "%.02g" % (summary.total_points_done / summary.total_days_with_velocity * 7) }}</li>
        </ul>
    </p>
    <p>
    <img src="{{ head_url_for('vis.visualize_velocity_of_epic', epic_name=epic.name) }}" alt="Epic velocity"/>
    </p>
        {% else -%}
    <p>
    There was no work on the issue recorded so far.
    </p>
        {% endif -%}
    </div>
    </div>
    <div class="row">
    <h3>Subtasks</h3>
    <p>
        <ul>
        {% for d in epic.children | sort(attribute="name") %}
    {{ utils.render_whatever_retro(d, model, today) }}
        {% endfor %}
        </ul>
    </p>
    </div>
</div>
{% endblock %}