<?php

if (empty($object->servicegroups)) return;

$list = array();
foreach ($object->servicegroups as $name => $alias) {
    $list[] = '<a href="' . $this->href('monitoring/list/service', array('servicegroups' => $name)) . '">'
              . $alias
              . '</a>';
}
echo '{{SERVICEGROUP_ICON}} <b>Servicegroups:</b> ' .  implode(', ', $list) . "<br />\n";

