diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index fb53fef55..81a061973 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -14,42 +14,41 @@ $contactHelper = $this->getHelper('ContactFlags'); href('monitoring/show/contacts', array('contact' => $contact->contact_name)); ?> -
- + foreach ($contacts as $contact): ?> +
+ contact_name ?> (contact_alias ?>) - array( - $contact->contact_email, '%1$s' - ), - 'Pager' => $contact->contact_pager, - 'Service notification period' => $contact->contact_notify_service_timeperiod, - 'Host notification period' => $contact->contact_notify_host_timeperiod - ) as $key => $value): - if (is_string($value)) { - $format = '%s'; - } else { - $format = $value[1]; - $value = $value[0]; - } - if ($value): ?> -
- -
+
%2$s', + t('Email'), + htmlspecialchars($contact->contact_email) + ) ?>
+ contact_pager): ?> +
+ : + contact_pager) ?> +
+ +
+
+
+ : + contact_notify_service_timeperiod) ?> +
+
+ : + contact_notify_host_timeperiod) ?> +
+
- + +
+
diff --git a/modules/monitoring/public/css/module.less b/modules/monitoring/public/css/module.less index c11b18414..1d60b75c7 100644 --- a/modules/monitoring/public/css/module.less +++ b/modules/monitoring/public/css/module.less @@ -32,3 +32,24 @@ table.objectstate td.state { padding-top: 0.5em; padding-bottom: 0.5em; } + +div.contacts div.contact { + background-color: lightgray; + padding: 0.5em; + border-radius: 0.5em; + overflow: hidden; + margin: 0.125em; + float: left; +} + +div.contacts div.contact > img { + width: 60px; + border: 4px solid white; + border-radius: 8px; + margin-right: 8px; + float: left; +} + +div.contacts div.notification-periods { + margin-top: 0.5em; +}