mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Node: show timeSince for all node types
This commit is contained in:
parent
96d8949f52
commit
bf69d5298a
2 changed files with 2 additions and 1 deletions
|
|
@ -335,6 +335,7 @@ abstract class Node
|
||||||
$this->renderLink($view)
|
$this->renderLink($view)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$title = preg_replace('#</a>#', ' ' . $view->timeSince($this->getLastStateChange()) . '</a>', $title);
|
||||||
$icons = array();
|
$icons = array();
|
||||||
|
|
||||||
foreach ($this->getActionIcons($view) as $icon) {
|
foreach ($this->getActionIcons($view) as $icon) {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ class ServiceNode extends Node
|
||||||
$params['backend'] = $this->bp->getBackendName();
|
$params['backend'] = $this->bp->getBackendName();
|
||||||
}
|
}
|
||||||
$link = $view->qlink($this->getAlias(), 'monitoring/service/show', $params);
|
$link = $view->qlink($this->getAlias(), 'monitoring/service/show', $params);
|
||||||
return preg_replace('#</a>#', ' ' . $view->timeSince($this->getLastStateChange()) . '</a>', $link);
|
return $link;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getActionIcons($view)
|
protected function getActionIcons($view)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue