add tracker html code via HYDRA_TRACKER

This commit is contained in:
Rob Vermaas 2011-04-19 12:00:54 +00:00
parent a9f422dcff
commit 2f215aac4b
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@ sub begin :Private {
$c->stash->{nixVersion} = $ENV{"NIX_RELEASE"} || "<devel>";
$c->stash->{curTime} = time;
$c->stash->{logo} = $ENV{"HYDRA_LOGO"} ? "/logo" : "/static/images/hydra.png" ;
$c->stash->{tracker} = $ENV{"HYDRA_TRACKER"} ;
if (scalar(@args) == 0 || $args[0] ne "static") {
$c->stash->{nrRunningBuilds} = $c->model('DB::BuildSchedulingInfo')->search({ busy => 1 }, {})->count();
$c->stash->{nrQueuedBuilds} = $c->model('DB::BuildSchedulingInfo')->count();

View file

@ -69,7 +69,7 @@
});
</script>
[% tracker %]
</head>
<body>