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

34 lines
867 B
PHP

<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ActionController;
class JobsController extends ActionController
{
public function indexAction()
{
$this->setAutoRefreshInterval(10);
$this->view->title = $this->translate('Jobs');
$this->getTabs()->add('jobs', array(
'url' => 'director/jobs',
'label' => $this->translate('Jobs'),
))->activate('jobs');
$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');
}
}