2017-12-19 17:03:51 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
2018-01-29 03:39:04 +01:00
|
|
|
<h2 class="text-center my-3">{{ branch.display_name }}</h2>
|
|
|
|
<div id="levelSummary" style="height: 270px;" class="col-sm-6 offset-sm-3 my-3"></div>
|
2017-12-19 17:03:51 +01:00
|
|
|
|
|
|
|
<div class="row">
|
2018-01-29 03:39:04 +01:00
|
|
|
<div class="mx-auto">
|
2017-12-19 17:03:51 +01:00
|
|
|
<div>
|
2018-01-29 03:39:04 +01:00
|
|
|
<table class="table table-responsive ci-app-table">
|
2017-12-19 17:03:51 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-01-29 03:39:04 +01:00
|
|
|
<th class="ci-app-row-title"></th>
|
2017-12-19 17:03:51 +01:00
|
|
|
<th class="ci-app-test-title"><div>Level</div></th>
|
|
|
|
{% for test in tests %}
|
|
|
|
<th class="ci-app-test-title"><div><span>{{ test }}</span></div></th>
|
|
|
|
{% endfor %}
|
|
|
|
<th class="ci-app-test-title"></th>
|
2018-01-30 19:37:27 +01:00
|
|
|
<th></th>
|
2017-12-19 17:03:51 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for result in app_results %}
|
|
|
|
<tr app="{{ result.app.name }}">
|
|
|
|
<td class="ci-app-row-title">
|
|
|
|
{% if result.app.list.name == "official" %}
|
|
|
|
<span class="official-star oi oi-star" title="Official" aria-hidden="true"></span>
|
|
|
|
{% endif %}
|
2017-12-19 19:20:27 +01:00
|
|
|
<a href="{{ url_for('main.appci_app', app=result.app.name) }}">
|
2018-01-30 19:37:27 +01:00
|
|
|
<span class="font-weight-bold" title="More tests / info for this app">
|
|
|
|
{{ result.app.name }}</span>
|
2017-12-19 17:03:51 +01:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="ci-app-level" value="{{ result.level }}">
|
|
|
|
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
|
2017-12-19 20:10:12 +01:00
|
|
|
{% for test in tests %}
|
|
|
|
{% set r = result.results[test] %}
|
2017-12-19 17:03:51 +01:00
|
|
|
<td class="ci-app-test-result">
|
|
|
|
<div title="{{ test }}" value="{{ r }}"></div>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
2018-01-30 19:37:27 +01:00
|
|
|
<td class="ci-app-test-info px-0">
|
2017-12-19 17:03:51 +01:00
|
|
|
{% if result.date == None %}
|
2018-01-29 03:39:04 +01:00
|
|
|
<span class="daysAgo" href="{{ result.url }}">???</span>
|
2017-12-19 17:03:51 +01:00
|
|
|
{% else %}
|
2018-01-29 03:39:04 +01:00
|
|
|
<span class="daysAgo" timestamp="{{ result.date.timestamp() }}" href="{{ result.url }}"></span>
|
2017-12-19 17:03:51 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if result.commit != result.app.master_commit %}
|
2018-01-30 19:37:27 +01:00
|
|
|
<span class="oi oi-clock text-warning"
|
2017-12-19 17:03:51 +01:00
|
|
|
aria-hidden="true"
|
|
|
|
title="This test is outdated : a more recent commit exists in master than the one tested."></span>
|
|
|
|
{% endif %}
|
|
|
|
{% if result.app.public_commit != result.app.master_commit %}
|
2018-01-30 19:37:27 +01:00
|
|
|
<span class="oi oi-warning text-warning"
|
2017-12-19 17:03:51 +01:00
|
|
|
aria-hidden="true"
|
|
|
|
title="Master commit is not up to date with {{ result.app.list.name }}.json !"></span>
|
|
|
|
{% endif %}
|
|
|
|
{% if result.app.testing_diff > 0 %}
|
2018-01-30 19:37:27 +01:00
|
|
|
<span class="oi oi-fork text-info"
|
2017-12-19 17:03:51 +01:00
|
|
|
aria-hidden="true"
|
|
|
|
title="An active testing branch exists for this app."></span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2018-01-30 19:37:27 +01:00
|
|
|
<td class="px-0">
|
|
|
|
<a href="{{ result.app.repo }}">
|
|
|
|
<span class="oi oi-external-link text-info"
|
|
|
|
aria-hidden="true"
|
|
|
|
title="To the Git repo!"></span>
|
|
|
|
</a>
|
|
|
|
</td>
|
2017-12-19 17:03:51 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/canvasjs.min.js') }}"></script>
|
|
|
|
<script>
|
|
|
|
window.onload = function () {
|
|
|
|
var chart = new CanvasJS.Chart("levelSummary", {
|
|
|
|
animationEnabled: false,
|
|
|
|
data: [{
|
|
|
|
type: "doughnut",
|
|
|
|
startAngle: -90,
|
|
|
|
//innerRadius: 60,
|
|
|
|
indexLabelFontSize: 17,
|
|
|
|
indexLabel: "{label} - #percent%",
|
|
|
|
toolTipContent: "<b>{label}:</b> {y} (#percent%)",
|
|
|
|
dataPoints: [
|
|
|
|
{ y: $(".ci-app-level[value=-1]").length, label: "Unknown", color:"#cccccc" },
|
|
|
|
{ y: $(".ci-app-level[value=0]").length, label: "Level 0", color: "#d9534f" },
|
|
|
|
{ y: $(".ci-app-level[value=1]").length, label: "Level 1", color: "#E26D4F" },
|
|
|
|
{ y: $(".ci-app-level[value=2]").length, label: "Level 2", color: "#E98D4E" },
|
|
|
|
{ y: $(".ci-app-level[value=3]").length, label: "Level 3", color: "#f0ad4e" },
|
|
|
|
{ y: $(".ci-app-level[value=4]").length, label: "Level 4", color: "#CBB052" },
|
|
|
|
{ y: $(".ci-app-level[value=5]").length, label: "Level 5", color: "#A6B255" },
|
|
|
|
{ y: $(".ci-app-level[value=6]").length, label: "Level 6", color: "#7AB659" },
|
|
|
|
{ y: $(".ci-app-level[value=7]").length, label: "Level 7", color: "#5cb85c" }
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
chart.render();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|