summaryrefslogtreecommitdiffstats
path: root/application/controllers/JobsController.php
blob: 04c6d342f0b4b95b620f8d30a73785f825180a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace Icinga\Module\Director\Controllers;

use Icinga\Module\Director\Web\Controller\ActionController;
use Icinga\Module\Director\Web\Table\JobTable;
use Icinga\Module\Director\Web\Tabs\ImportTabs;

class JobsController extends ActionController
{
    public function indexAction()
    {
        $this->addTitle($this->translate('Jobs'))
            ->setAutorefreshInterval(10)
            ->addAddLink($this->translate('Add a new Job'), 'director/job/add')
            ->tabs(new ImportTabs())->activate('jobs');

        (new JobTable($this->db()))->renderTo($this);
    }
}