Node: show timeSince for all node types

This commit is contained in:
Thomas Gelf 2015-10-02 08:32:16 +02:00
parent 96d8949f52
commit bf69d5298a
2 changed files with 2 additions and 1 deletions

View file

@ -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) {

View file

@ -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)