Hide some things that require a local store

This commit is contained in:
Eelco Dolstra
2017-10-18 13:44:41 +02:00
parent 40a9b70df2
commit 44ef743d84
3 changed files with 5 additions and 2 deletions

View File

@ -65,8 +65,9 @@ sub build_GET {
my $build = $c->stash->{build};
$c->stash->{template} = 'build.tt';
$c->stash->{isLocalStore} = isLocalStore();
$c->stash->{available} =
isLocalStore
$c->stash->{isLocalStore}
? all { isValidPath($_->path) } $build->buildoutputs->all
: 1;
$c->stash->{drvAvailable} = isValidPath $build->drvpath;