icingaweb2/modules/monitoring/application/views/scripts/show/components/contacts.phtml

33 lines
998 B
PHTML

<?php
if (!empty($this->contacts)) {
$contactList = array();
foreach ($this->contacts as $contact) {
$contactList[] = $this->qlink(
$contact->contact_alias,
'monitoring/show/contact',
array(
'contact_name' => $contact->contact_name
)
);
}
echo '<strong>Contacts:</strong> ';
echo implode(', ', $contactList);
}
if (!empty($this->contactgroups)) {
$contactGroupList = array();
foreach ($this->contactgroups as $contactgroup) {
$contactGroupList[] = $this->qlink(
$contactgroup->contactgroup_alias,
'monitoring/show/contactgroup',
array(
'contactgroup_name' => $contactgroup->contactgroup_name
)
);
}
echo '<strong>Contactgroups:</strong> ';
echo implode(', ', $contactGroupList);
}
?>