Different icons (darker red) for cancelled builds. Fixes #25.
This commit is contained in:
parent
d1da9a8823
commit
75277311ac
|
@ -353,7 +353,7 @@ sub getEvals {
|
||||||
|
|
||||||
# Compute what inputs changed between each eval.
|
# Compute what inputs changed between each eval.
|
||||||
my $curInputs = [ $cur->jobsetevalinputs->search(
|
my $curInputs = [ $cur->jobsetevalinputs->search(
|
||||||
{ uri => { '!=' => undef }, revision => { '!=' => undef }, altNr => 0 },
|
{ -or => [ -and => [ uri => { '!=' => undef }, revision => { '!=' => undef }], dependency => { '!=' => undef }], altNr => 0 },
|
||||||
{ order_by => "name" }) ];
|
{ order_by => "name" }) ];
|
||||||
my @changedInputs;
|
my @changedInputs;
|
||||||
my %prevInputsHash;
|
my %prevInputsHash;
|
||||||
|
@ -361,7 +361,8 @@ sub getEvals {
|
||||||
foreach my $input (@{$curInputs}) {
|
foreach my $input (@{$curInputs}) {
|
||||||
my $p = $prevInputsHash{$input->name};
|
my $p = $prevInputsHash{$input->name};
|
||||||
push @changedInputs, $input
|
push @changedInputs, $input
|
||||||
if !defined $p || $input->revision ne $p->revision || $input->type ne $p->type || $input->uri ne $p->uri;
|
if !defined $p || $input->revision ne $p->revision || $input->type ne $p->type || $input->uri ne $p->uri ||
|
||||||
|
( defined $input->dependency && defined $p->dependency && $input->dependency->id ne $p->dependency->id);
|
||||||
}
|
}
|
||||||
$prevInputs = $curInputs;
|
$prevInputs = $curInputs;
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@
|
||||||
[%- ELSIF buildstatus == 2 -%]
|
[%- ELSIF buildstatus == 2 -%]
|
||||||
<img src="/static/images/dependency_[% size %].png" alt="Dependency failed" />
|
<img src="/static/images/dependency_[% size %].png" alt="Dependency failed" />
|
||||||
[%- ELSIF buildstatus == 4 -%]
|
[%- ELSIF buildstatus == 4 -%]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
<img src="/static/images/cancelled_[% size %].png" alt="Cancelled" />
|
||||||
[%- ELSIF buildstatus == 5 -%]
|
[%- ELSIF buildstatus == 5 -%]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
||||||
[%- ELSIF buildstatus == 6 -%]
|
[%- ELSIF buildstatus == 6 -%]
|
||||||
|
@ -416,13 +416,15 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
||||||
[% BLOCK renderShortRev -%]
|
[% BLOCK renderShortEval -%]
|
||||||
[%- IF type == "svn" || type == "svn-checkout" || type == "bzr" || type == "bzr-checkout" -%]
|
[%- IF input.type == "svn" || input.type == "svn-checkout" || input.type == "bzr" || input.type == "bzr-checkout" -%]
|
||||||
r[%- revision -%]
|
r[%- revision -%]
|
||||||
[%- ELSIF type == "git" -%]
|
[%- ELSIF input.type == "git" -%]
|
||||||
<tt>[% revision.substr(0, 7) %]</tt>
|
<tt>[% input.revision.substr(0, 7) %]</tt>
|
||||||
|
[%- ELSIF input.type == "build" || input.type == "sysbuild" -%]
|
||||||
|
<tt>[% input.dependency.id %]</tt>
|
||||||
[%- ELSE -%]
|
[%- ELSE -%]
|
||||||
<tt>[%- revision -%]</tt>
|
<tt>[%- input.revision -%]</tt>
|
||||||
[%- END -%]
|
[%- END -%]
|
||||||
[%- END %]
|
[%- END %]
|
||||||
|
|
||||||
|
@ -446,7 +448,7 @@
|
||||||
<td>
|
<td>
|
||||||
[%- IF e.changedInputs.size > 0 -%]
|
[%- IF e.changedInputs.size > 0 -%]
|
||||||
[%- sep=''; FOREACH input IN e.changedInputs -%]
|
[%- sep=''; FOREACH input IN e.changedInputs -%]
|
||||||
[%- sep %] [% input.name %] → [% INCLUDE renderShortRev type=input.type revision=input.revision %]
|
[%- sep %] [% input.name %] → [% INCLUDE renderShortEval input=input %]
|
||||||
[%- sep=','; END -%]
|
[%- sep=','; END -%]
|
||||||
[%- ELSE -%]
|
[%- ELSE -%]
|
||||||
-
|
-
|
||||||
|
|
BIN
src/root/static/images/cancelled_128.png
Normal file
BIN
src/root/static/images/cancelled_128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
src/root/static/images/cancelled_16.png
Normal file
BIN
src/root/static/images/cancelled_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 753 B |
BIN
src/root/static/images/cancelled_32.png
Normal file
BIN
src/root/static/images/cancelled_32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
src/root/static/images/cancelled_64.png
Normal file
BIN
src/root/static/images/cancelled_64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
Loading…
Reference in a new issue