icingaweb2-module-director/application/controllers/JobsController.php

21 lines
588 B
PHP
Raw Normal View History

2016-04-22 14:27:32 +02:00
<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ActionController;
2017-08-16 14:14:30 +02:00
use Icinga\Module\Director\Web\Table\JobTable;
use Icinga\Module\Director\Web\Tabs\ImportTabs;
2016-04-22 14:27:32 +02:00
class JobsController extends ActionController
{
public function indexAction()
{
2017-08-16 14:14:30 +02:00
$this->addTitle($this->translate('Jobs'))
->setAutoRefreshInterval(10)
->addAddLink($this->translate('Add a new Job'), 'director/job/add')
->tabs(new ImportTabs())->activate('jobs');
2016-04-22 14:27:32 +02:00
2017-08-16 14:14:30 +02:00
(new JobTable($this->db()))->renderTo($this);
2016-04-22 14:27:32 +02:00
}
}