diff --git a/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm b/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm index 3948b8b6..925637f5 100644 --- a/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm +++ b/src/HydraFrontend/lib/HydraFrontend/Controller/Root.pm @@ -14,6 +14,7 @@ __PACKAGE__->config->{namespace} = ''; sub begin :Private { my ( $self, $c ) = @_; $c->stash->{projects} = [$c->model('DB::Projects')->search({}, {order_by => 'displayname'})]; + $c->stash->{curUri} = $c->request->uri; } @@ -75,6 +76,7 @@ sub project :Local { {project => $projectName}, {join => 'resultInfo', select => {sum => 'stoptime - starttime'}, as => ['sum']}) ->first->get_column('sum'); + $c->stash->{totalBuildTime} = 0 unless defined $c->stash->{totalBuildTime}; $c->stash->{jobNames} = [$c->model('DB::Builds')->search({project => $projectName}, {select => [{distinct => 'attrname'}], as => ['attrname']})]; diff --git a/src/HydraFrontend/root/layout.tt b/src/HydraFrontend/root/layout.tt index 77051835..6d87e91d 100644 --- a/src/HydraFrontend/root/layout.tt +++ b/src/HydraFrontend/root/layout.tt @@ -1,4 +1,11 @@ [% USE date -%] + +[% BLOCK makeLink %] +
Description: [% curProject.description %]
+ +No jobsets have been defined yet.
+ +[% END %] +No builds have been performed or scheduled.
+ +[% END %] +