object/history: use activity log styling

This commit is contained in:
Thomas Gelf 2016-03-16 22:50:35 +01:00
parent 01659f3505
commit 782667e6b9

View File

@ -231,12 +231,16 @@ abstract class ObjectController extends ActionController
public function historyAction()
{
$db = $this->db();
$type = $this->getType();
$this->getTabs()->activate('history');
$this->view->title = $this->translate('Activity Log');
$lastDeployedId = $db->getLastDeploymentActivityLogId();
$this->view->table = $this->applyPaginationLimits(
$this->loadTable('activityLog')->setConnection($this->db())
->filterObject('icinga_' . $type, $this->object->object_name)
$this->loadTable('activityLog')
->setConnection($db)
->setLastDeployedId($lastDeployedId)
->filterObject('icinga_' . $type, $this->object->object_name)
);
$this->render('object/history', null, true);
}