Add proper titles to the contactgroups view

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 17:23:26 +01:00
parent 1bcac55778
commit 3aa1f7e58e
1 changed files with 9 additions and 6 deletions

View File

@ -21,18 +21,21 @@ foreach ($groupData as $groupName => $groupInfo): ?>
<?php foreach ($groupInfo['contacts'] as $c): ?> <?php foreach ($groupInfo['contacts'] as $c): ?>
<div class="box entry"> <div class="box entry">
<?= $this->img('/static/gravatar', array('email' => $c->contact_email)); ?> <?= $this->img('/static/gravatar', array('email' => $c->contact_email)); ?>
<a href="<?= $this->href( <?= $this->qlink(
$c->contact_alias,
'monitoring/show/contact', 'monitoring/show/contact',
array('contact' => $c->contact_name) array('contact' => $c->contact_name),
); ?>"> array('title' => sprintf(
<?= $this->escape($c->contact_alias) ?> $this->translate('Show detailed information about %s'),
</a> $c->contact_alias
))
); ?>
<p> <p>
<?php if ($c->contact_email): ?> <?php if ($c->contact_email): ?>
<?= $c->contact_email; ?> <?= $c->contact_email; ?>
<?php endif; <?php endif;
if ($c->contact_pager): ?> if ($c->contact_pager): ?>
<br /> <br>
<?= $c->contact_pager; ?> <?= $c->contact_pager; ?>
<?php endif ?> <?php endif ?>
</p> </p>