Revert "Remove the global channel"
[?]
Dec 6, 2016, 1:25 PM
JLQN6QYHNPQJOOY2CCV5WDIKNCISQ5A65FO6IHSHTSZZ54IJLBQACDependencies
- [2]
2T476X2PRemove the global channel - [3]
J5UVLXOK* Start of a basic Catalyst web interface. - [4]
SHBLLAVH* More global substitution. - [5]
LBNVQXUB* Build the /build stuff in a separate controller. - [6]
SZYDW2DGhydra: added some user admin - [*]
R2PON6R7Allow non-admin users to see the machine status page - [*]
QNYIOH25* Generate a robots.txt.
Change contents
- edit in src/lib/Hydra/Controller/Root.pm at line 6
use base 'Hydra::Base::Controller::ListBuilds'; - edit in src/lib/Hydra/Controller/Root.pm at line 9
use base 'Hydra::Base::Controller::REST'; - edit in src/lib/Hydra/Controller/Root.pm at line 192[8.683][9.0]
}# Hydra::Base::Controller::ListBuilds needs this.sub get_builds : Chained('/') PathPart('') CaptureArgs(0) {my ($self, $c) = @_;$c->stash->{allBuilds} = $c->model('DB::Builds');$c->stash->{latestSucceeded} = $c->model('DB')->resultset('LatestSucceeded');$c->stash->{channelBaseName} = "everything";$c->stash->{total} = $c->model('DB::NrBuilds')->find('finished')->count;