Raw content of EnsEMBL::Web::Component::Healthcheck::FailureReports
package EnsEMBL::Web::Component::Healthcheck::FailureReports;
###
use strict;
use warnings;
no warnings "uninitialized";
use base qw(EnsEMBL::Web::Component::Healthcheck);
use Data::Dumper;
sub _init {
my $self = shift;
$self->cacheable( 0 );
$self->ajaxable( 0 );
$self->configurable( 1 );
}
sub caption {
my $self = shift;
return '';
}
sub content {
my $self = shift;
my $object = $self->object;
my $species = $object->species;
my $release = $object->release;
my $html;
my @dbs = @{$object->database_names};
if (@dbs) {
foreach my $db (@dbs) {
$html .= qq(Failures for $db
);
my @reports = $object->reports($db);
if (@reports) {
$html .= qq(
Note: you can annotate multiple reports by ticking the checkboxes then
clicking on the 'Multi' button at the bottom of the table.
\n";
}
else {
$html .= qq(No testcase failures match your display options
);
}
}
}
return $html;
}
1;