|
@@ -28,7 +28,7 @@
|
|
|
<div class="flex-col">
|
|
<div class="flex-col">
|
|
|
|
|
|
|
|
<div class="flex-row">
|
|
<div class="flex-row">
|
|
|
- <h4>Sprint #{{ sprint.id }} : {{ sprint.date_start|date:"d M. Y" }} au {{ sprint.date_end|date:"d M. Y" }}</h4>
|
|
|
|
|
|
|
+ <h4>Sprint #{{ sprint.number }} : {{ sprint.date_start|date:"d M. Y" }} au {{ sprint.date_end|date:"d M. Y" }}</h4>
|
|
|
{% if sprint.running %}<span class="running" style="margin-left: 14px;">En cours</span>{% endif %}
|
|
{% if sprint.running %}<span class="running" style="margin-left: 14px;">En cours</span>{% endif %}
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -55,10 +55,10 @@ var ctx = document.getElementById("chart-velocity").getContext('2d');
|
|
|
var myChart = new Chart(ctx, {
|
|
var myChart = new Chart(ctx, {
|
|
|
type: 'line',
|
|
type: 'line',
|
|
|
data: {
|
|
data: {
|
|
|
- labels: [{% for sprint in sprints|dictsort:"id" %}{% if not forloop.last %}"Sprint #{{ sprint.id }}",{% endif %}{% endfor %}],
|
|
|
|
|
|
|
+ labels: [{% for sprint in sprints|dictsort:"id" %}{% if sprint.closed %}"Sprint #{{ sprint.id }}",{% endif %}{% endfor %}],
|
|
|
datasets: [{
|
|
datasets: [{
|
|
|
label: 'Vélocité réelle',
|
|
label: 'Vélocité réelle',
|
|
|
- data: [{% for sprint in sprints|dictsort:"id" %}{% if not forloop.last %}{{ sprint.real_velocity }},{% endif %}{% endfor %}],
|
|
|
|
|
|
|
+ data: [{% for sprint in sprints|dictsort:"id" %}{% if sprint.closed %}{{ sprint.real_velocity }},{% endif %}{% endfor %}],
|
|
|
backgroundColor: [
|
|
backgroundColor: [
|
|
|
'rgba(255, 255, 255, 0.2)'
|
|
'rgba(255, 255, 255, 0.2)'
|
|
|
],
|
|
],
|
|
@@ -69,7 +69,7 @@ var myChart = new Chart(ctx, {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'Vélocité prévue',
|
|
label: 'Vélocité prévue',
|
|
|
- data: [{% for sprint in sprints|dictsort:"id" %}{% if not forloop.last %}{{ sprint.planned_velocity }},{% endif %}{% endfor %}],
|
|
|
|
|
|
|
+ data: [{% for sprint in sprints|dictsort:"id" %}{% if sprint.closed %}{{ sprint.planned_velocity }},{% endif %}{% endfor %}],
|
|
|
backgroundColor: [
|
|
backgroundColor: [
|
|
|
'rgba(255, 255, 255, 0.2)'
|
|
'rgba(255, 255, 255, 0.2)'
|
|
|
],
|
|
],
|