forked from lix-project/hydra
* Add nix version to footer of hydra pages
This commit is contained in:
parent
cbeccda5eb
commit
d7713b4dba
|
@ -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
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>.
|
||||
|
|
Loading…
Reference in a new issue