Add proper titles to the contacts view

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 17:23:39 +01:00
parent 3aa1f7e58e
commit e0164e8bcb
1 changed files with 14 additions and 8 deletions

View File

@ -15,15 +15,21 @@
foreach ($contacts as $contact): ?>
<div class="contact">
<?= $this->img('/static/gravatar', array('email' => $contact->contact_email)); ?>
<a href="<?= $this->href(
<?= $this->qlink(
'<strong>' . $this->escape($contact->contact_name) . '</strong>',
'monitoring/show/contact',
array('contact' => $contact->contact_name)
) ?>"><strong><?= $contact->contact_name ?></strong></a> (<?= $contact->contact_alias ?>)
<div><?= sprintf(
'%1$s: <a href="mailto:%2$s">%2$s</a>',
mt('monitoring', 'Email'),
$this->escape($contact->contact_email)
) ?></div>
array('contact' => $contact->contact_name),
array('title' => sprintf(
$this->translate('Show detailed information about %s'),
$contact->contact_alias
)),
false
); ?> (<?= $contact->contact_alias; ?>)
<div>
<?= $this->translate('Email'); ?>: <a href="mailto:<?= $contact->contact_email; ?>" title="<?= sprintf($this->translate('Send a mail to %s'), $contact->contact_alias); ?>" aria-label="<?= sprintf($this->translate('Send a mail to %s'), $contact->contact_alias); ?>">
<?= $this->escape($contact->contact_email); ?>
</a>
</div>
<?php if ($contact->contact_pager): ?>
<div>
<?= $this->translate('Pager') ?>: