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

30 lines
744 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;
class JobsController extends ActionController
{
public function indexAction()
{
2016-04-22 14:34:29 +02:00
$this->setAutoRefreshInterval(10);
2016-04-22 14:27:32 +02:00
$this->view->title = $this->translate('Jobs');
2016-05-25 15:27:07 +02:00
$this->setImportTabs()->activate('jobs');
2016-04-22 14:27:32 +02:00
$this->view->addLink = $this->view->qlink(
$this->translate('Add'),
'director/job',
null,
array('class' => 'icon-plus')
);
$this->view->table = $this->applyPaginationLimits(
$this->loadTable('job')
->setConnection($this->db())
);
$this->setViewScript('list/table');
}
}