mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
ci compare: commit old uncommited stuff about listing only major regressions
This commit is contained in:
parent
ce19acde62
commit
6bf6ce28bf
1 changed files with 5 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="mx-auto">
|
<div class="mx-auto">
|
||||||
<div style="text-align:center;">
|
<div style="text-align:center;">
|
||||||
<button id="filter_onlyDiffs" type="button" class="btn btn-primary btn-sm" href="javascript:void(0)" onclick="toggle(this)">Show only diffs</button>
|
<button id="filter_onlyMajorRegressions" type="button" class="btn btn-primary btn-sm" href="javascript:void(0)" onclick="toggle(this)">Show only major regressions</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-responsive ci-app-table">
|
<table class="table table-responsive ci-app-table">
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<tr class="ci-branch-comparison" value="{{ result.compare }}" app="{{ result.app.name }}">
|
<tr class="ci-branch-comparison" majorRegression="{{ result.level and result.level > 4 and (not result.level_compare or result.level_compare < 4) }}" value="{{ result.compare }}" app="{{ result.app.name }}">
|
||||||
<td class="ci-app-row-title">
|
<td class="ci-app-row-title">
|
||||||
<a href="{{ url_for('main.appci_app', app=result.app.name) }}">
|
<a href="{{ url_for('main.appci_app', app=result.app.name) }}">
|
||||||
<span title="App">
|
<span title="App">
|
||||||
|
@ -84,9 +84,9 @@ function toggle(e) {
|
||||||
update_filters();
|
update_filters();
|
||||||
}
|
}
|
||||||
function update_filters() {
|
function update_filters() {
|
||||||
var onlyDiffs = $("#filter_onlyDiffs").hasClass("btn-primary");
|
var onlyMajorRegressions = $("#filter_onlyMajorRegressions").hasClass("btn-primary");
|
||||||
$(".ci-branch-comparison").show();
|
$(".ci-branch-comparison").show();
|
||||||
if (onlyDiffs) { $(".ci-branch-comparison[value='same']").hide(); }
|
if (onlyMajorRegressions) { $(".ci-branch-comparison[majorRegression!='True']").hide(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -94,3 +94,4 @@ function update_filters() {
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue