Different icons (darker red) for cancelled builds. Fixes #25.

This commit is contained in:
Rob Vermaas 2012-05-25 04:14:36 +02:00
parent d1da9a8823
commit 75277311ac
6 changed files with 12 additions and 9 deletions

View file

@ -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;

View file

@ -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 -%]
- -

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB