2017-12-19 17:03:51 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
2018-01-30 19:37:27 +01:00
|
|
|
<h2 class="text-center my-3">{{ app.name.title() }}
|
|
|
|
<a href="{{ app.repo }}" style="font-size:15px">
|
|
|
|
<span class="oi oi-external-link text-info"
|
|
|
|
aria-hidden="true"
|
|
|
|
title="To the Git repo!"></span>
|
|
|
|
</a></h2>
|
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>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for result in branch_results %}
|
2020-09-03 19:33:59 +02:00
|
|
|
<tr branch="{{ result.branch.name }}" {% if result.outdated %}style="opacity: 0.5"{% endif %} >
|
2017-12-19 17:03:51 +01:00
|
|
|
<td class="ci-app-row-title">
|
2017-12-19 19:20:27 +01:00
|
|
|
<a href="{{ url_for('main.appci_branch', branch=result.branch.name) }}">
|
2017-12-19 17:03:51 +01:00
|
|
|
<span title="Branch">
|
|
|
|
<strong>{{ result.branch.display_name }}</strong></span>
|
|
|
|
</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 %}
|
|
|
|
<td class="ci-app-test-info">
|
2019-01-22 17:05:47 +01:00
|
|
|
{% if result.date == None %}
|
|
|
|
<span class="daysAgo" href="{{ result.branch.last_build_url(app) }}">???</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="daysAgo" timestamp="{{ result.date.timestamp() }}" href="{{ result.branch.last_build_url(app) }}"></span>
|
|
|
|
{% endif %}
|
2020-09-03 19:33:59 +02:00
|
|
|
{% if result.outdated %}
|
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"
|
2020-09-03 19:33:59 +02:00
|
|
|
title="This test is outdated"></span>
|
2017-12-19 17:03:51 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 offset-sm-4">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
2018-01-30 19:37:27 +01:00
|
|
|
|
2019-05-14 19:00:38 +02:00
|
|
|
{% if app.testing_pr %}
|
2017-12-19 17:03:51 +01:00
|
|
|
<p class="card-text text-info">
|
|
|
|
<span class="oi oi-fork" aria-hidden="true"></span>
|
2019-05-14 19:00:38 +02:00
|
|
|
A testing PR is open for this app.
|
2017-12-19 17:03:51 +01:00
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p class="card-text text-muted">
|
|
|
|
<span class="oi oi-fork" aria-hidden="true"></span>
|
|
|
|
No active testing branch for this app.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if app.opened_issues > 0 %}
|
|
|
|
<p class="card-text text-warning">
|
|
|
|
<span class="oi oi-bug" aria-hidden="true"></span>
|
|
|
|
There are <a class="text-warning" href="{{ app.repo }}/issues">{{ app.opened_issues }} opened issues</a> for this app.
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p class="card-text text-success">
|
|
|
|
<span class="oi oi-task" aria-hidden="true"></span>
|
|
|
|
No issues opened for this app !
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-01-30 19:37:27 +01:00
|
|
|
|
2017-12-19 17:03:51 +01:00
|
|
|
{% if app.opened_prs > 0 %}
|
|
|
|
<p class="card-text text-info">
|
|
|
|
<span class="oi oi-beaker" aria-hidden="true"></span>
|
|
|
|
There are <a class="text-beaker" href="{{ app.repo }}/pulls">{{ app.opened_prs }} opened pull requests</a> for this app.
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p class="card-text text-muted">
|
|
|
|
<span class="oi oi-beaker" aria-hidden="true"></span>
|
|
|
|
There are no pull requests opened.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-11-05 22:23:31 +01:00
|
|
|
<div class="row">
|
2020-11-05 23:06:25 +01:00
|
|
|
<div class="col-sm-6 offset-sm-3 mt-3">
|
2020-11-05 22:23:31 +01:00
|
|
|
<div id="levelHistory" style="height: 270px;"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/canvasjs.min.js') }}"></script>
|
|
|
|
<script>
|
|
|
|
window.onload = function () {
|
|
|
|
|
|
|
|
var colors_per_level = [
|
|
|
|
"#d9534f",
|
|
|
|
"#E26D4F",
|
|
|
|
"#E98D4E",
|
|
|
|
"#f0ad4e",
|
|
|
|
"#CBB052",
|
|
|
|
"#A6B255",
|
|
|
|
"#7AB659",
|
|
|
|
"#5cb85c",
|
|
|
|
"#4695d5"
|
|
|
|
];
|
|
|
|
|
|
|
|
var chart = new CanvasJS.Chart("levelHistory", {
|
|
|
|
animationEnabled: false,
|
|
|
|
title:{
|
2020-11-05 23:06:25 +01:00
|
|
|
text: "App level history (in apps.json)"
|
2020-11-05 22:23:31 +01:00
|
|
|
},
|
|
|
|
data: [
|
|
|
|
{
|
2020-11-05 23:06:25 +01:00
|
|
|
markerType: "circle",
|
|
|
|
markerSize: 10,
|
2020-11-05 22:23:31 +01:00
|
|
|
type: "line",
|
|
|
|
dataPoints: [
|
|
|
|
{% for d in history %}
|
2020-11-07 20:59:53 +01:00
|
|
|
{ label: "{{ d.date }}",
|
|
|
|
{% if d["level"] >= 0 %}
|
|
|
|
y: {{ d["level"] }},
|
2020-11-05 23:06:25 +01:00
|
|
|
markerColor: colors_per_level[{{ d["level"] }}]
|
2020-11-07 20:59:53 +01:00
|
|
|
{% else %}
|
|
|
|
y: 0,
|
|
|
|
markerSize: 1
|
|
|
|
{% endif %}
|
2020-11-05 23:06:25 +01:00
|
|
|
},
|
2020-11-05 22:23:31 +01:00
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
|
|
|
});
|
|
|
|
chart.render();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2017-12-19 17:03:51 +01:00
|
|
|
{% endblock %}
|