forked from lix-project/hydra
Hide some things that require a local store
This commit is contained in:
parent
40a9b70df2
commit
44ef743d84
|
@ -65,8 +65,9 @@ sub build_GET {
|
||||||
my $build = $c->stash->{build};
|
my $build = $c->stash->{build};
|
||||||
|
|
||||||
$c->stash->{template} = 'build.tt';
|
$c->stash->{template} = 'build.tt';
|
||||||
|
$c->stash->{isLocalStore} = isLocalStore();
|
||||||
$c->stash->{available} =
|
$c->stash->{available} =
|
||||||
isLocalStore
|
$c->stash->{isLocalStore}
|
||||||
? all { isValidPath($_->path) } $build->buildoutputs->all
|
? all { isValidPath($_->path) } $build->buildoutputs->all
|
||||||
: 1;
|
: 1;
|
||||||
$c->stash->{drvAvailable} = isValidPath $build->drvpath;
|
$c->stash->{drvAvailable} = isValidPath $build->drvpath;
|
||||||
|
|
|
@ -140,7 +140,7 @@ END;
|
||||||
[% IF steps.size() > 0 %]<li><a href="#tabs-buildsteps" data-toggle="tab">Build steps</a></li>[% END %]
|
[% IF steps.size() > 0 %]<li><a href="#tabs-buildsteps" data-toggle="tab">Build steps</a></li>[% END %]
|
||||||
[% IF build.dependents %]<li><a href="#tabs-usedby" data-toggle="tab">Used by</a></li>[% END%]
|
[% IF build.dependents %]<li><a href="#tabs-usedby" data-toggle="tab">Used by</a></li>[% END%]
|
||||||
[% IF drvAvailable %]<li><a href="#tabs-build-deps" data-toggle="tab">Build dependencies</a></li>[% END %]
|
[% IF drvAvailable %]<li><a href="#tabs-build-deps" data-toggle="tab">Build dependencies</a></li>[% END %]
|
||||||
[% IF available %]<li><a href="#tabs-runtime-deps" data-toggle="tab">Runtime dependencies</a></li>[% END %]
|
[% IF localStore && available %]<li><a href="#tabs-runtime-deps" data-toggle="tab">Runtime dependencies</a></li>[% END %]
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div id="generic-tabs" class="tab-content">
|
<div id="generic-tabs" class="tab-content">
|
||||||
|
|
|
@ -98,6 +98,7 @@
|
||||||
<a class="btn btn-mini" href="[% contents %]">Contents</a>
|
<a class="btn btn-mini" href="[% contents %]">Contents</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
[% IF localStore %]
|
||||||
<tr class="product">
|
<tr class="product">
|
||||||
<td>
|
<td>
|
||||||
<img src="[% c.uri_for("/static/images/nix-build.png") %]" alt="Source" />
|
<img src="[% c.uri_for("/static/images/nix-build.png") %]" alt="Source" />
|
||||||
|
@ -140,6 +141,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% END %]
|
||||||
|
|
||||||
[% CASE ["file", "channel"] %]
|
[% CASE ["file", "channel"] %]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue