Revert "Remove the global channel"

[?]
Dec 6, 2016, 1:25 PM
JLQN6QYHNPQJOOY2CCV5WDIKNCISQ5A65FO6IHSHTSZZ54IJLBQAC

Dependencies

  • [2] 2T476X2P Remove 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] SZYDW2DG hydra: added some user admin
  • [*] R2PON6R7 Allow 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
    [3.873]
    [3.86]
    use base 'Hydra::Base::Controller::ListBuilds';
  • edit in src/lib/Hydra/Controller/Root.pm at line 9
    [3.3368][2.0:42]()
    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;