mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-18 23:16:16 -05:00
Ensure compatiblity with https://github.com/Icinga/ipl-web/pull/258
This commit is contained in:
parent
3403b605e4
commit
71e957dc5e
4 changed files with 24 additions and 22 deletions
|
|
@ -9,7 +9,7 @@ Make sure you use `businessprocess` as the module name. The following requiremen
|
|||
* PHP (≥7.2)
|
||||
* [Icinga Web](https://github.com/Icinga/icingaweb2) (≥2.9)
|
||||
* [Icinga DB Web](https://github.com/Icinga/icingadb-web) (≥1.0)
|
||||
* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (≥0.13.0)
|
||||
* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (≥0.15.0)
|
||||
* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (≥0.12.0)
|
||||
|
||||
<!-- {% include "02-Installation.md" %} -->
|
||||
|
|
|
|||
|
|
@ -88,16 +88,18 @@ class NodeTile extends BaseHtmlElement
|
|||
$link = $this->getMainNodeLink();
|
||||
if ($renderer->isBreadcrumb()) {
|
||||
$state = strtolower($node->getStateName());
|
||||
if ($node->isHandled()) {
|
||||
$state = $state . ' handled';
|
||||
}
|
||||
$link->prepend((new StateBall($state, StateBall::SIZE_MEDIUM))->addAttributes([
|
||||
'title' => sprintf(
|
||||
'%s %s',
|
||||
$state,
|
||||
DateFormatter::timeSince($node->getLastStateChange())
|
||||
)
|
||||
]));
|
||||
$link->prependHtml(
|
||||
(new StateBall($state, StateBall::SIZE_MEDIUM))
|
||||
->setHandled($node->isHandled())
|
||||
->addAttributes([
|
||||
'title' => sprintf(
|
||||
'%s%s %s',
|
||||
$state,
|
||||
$node->isHandled() ? ' (handled)' : '',
|
||||
DateFormatter::timeSince($node->getLastStateChange())
|
||||
)
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
$this->add($link);
|
||||
|
|
|
|||
|
|
@ -125,16 +125,16 @@ class TreeRenderer extends Renderer
|
|||
$icons[] = $node->getIcon();
|
||||
}
|
||||
$state = strtolower($node->getStateName($parent !== null ? $parent->getChildState($node) : null));
|
||||
if ($node->isHandled()) {
|
||||
$state = $state . ' handled';
|
||||
}
|
||||
$icons[] = (new StateBall($state, StateBall::SIZE_MEDIUM))->addAttributes([
|
||||
'title' => sprintf(
|
||||
'%s %s',
|
||||
$state,
|
||||
DateFormatter::timeSince($node->getLastStateChange())
|
||||
)
|
||||
]);
|
||||
$icons[] = (new StateBall($state, StateBall::SIZE_MEDIUM))
|
||||
->setHandled($node->isHandled())
|
||||
->addAttributes([
|
||||
'title' => sprintf(
|
||||
'%s%s %s',
|
||||
$state,
|
||||
$node->isHandled() ? ' (handled)' : '',
|
||||
DateFormatter::timeSince($node->getLastStateChange())
|
||||
)
|
||||
]);
|
||||
|
||||
if ($node->isAcknowledged()) {
|
||||
$icons[] = new Icon('check');
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Name: Businessprocess
|
||||
Version: 2.5.1
|
||||
Requires:
|
||||
Libraries: icinga-php-library (>=0.13.0), icinga-php-thirdparty (>=0.12.0)
|
||||
Libraries: icinga-php-library (>=0.15.0), icinga-php-thirdparty (>=0.12.0)
|
||||
Modules: monitoring (>=2.9.0), icingadb (>=1.1.0)
|
||||
Description: A Business Process viewer and modeler
|
||||
Provides a web-based process modeler for Icinga. It integrates as a module
|
||||
|
|
|
|||
Loading…
Reference in a new issue