* Add nix version to footer of hydra pages

This commit is contained in:
Rob Vermaas 2009-09-01 08:50:51 +00:00
parent cbeccda5eb
commit d7713b4dba
3 changed files with 4 additions and 2 deletions

View file

@ -95,7 +95,8 @@ let
--prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \
--prefix PATH ':' $out/bin:$hydraPath \
--set HYDRA_HOME $out/libexec/hydra \
--set HYDRA_RELEASE ${tarball.version}
--set HYDRA_RELEASE ${tarball.version} \
--set NIX_RELEASE ${nix.name}
done
ensureDir $out/share/doc/hydra/manual

View file

@ -15,6 +15,7 @@ sub begin :Private {
my ($self, $c) = @_;
$c->stash->{curUri} = $c->request->uri;
$c->stash->{version} = $ENV{"HYDRA_RELEASE"} || "<devel>";
$c->stash->{nixVersion} = $ENV{"NIX_RELEASE"} || "<devel>";
}

View file

@ -80,7 +80,7 @@
[% content %]
<div id="footer">
<hr />
<em>Hydra [% HTML.escape(version) %].</em>
<em>Hydra [% HTML.escape(version) %] (using [% HTML.escape(nixVersion) %]).</em>
Page generated on [% INCLUDE renderDateTime %].
[% IF c.user_exists %]
You are logged in as <tt>[% c.user.username %]</tt>.