2014-09-05 18:09:22 +02:00
|
|
|
<?php $contactHelper = $this->getHelper('ContactFlags') ?>
|
|
|
|
<div class="controls">
|
|
|
|
<h1><?= $this->translate('Contact details') ?></h1>
|
|
|
|
<div class="circular" style="margin-top: 1em; margin-left: 2em; width: 120px; height: 120px; float: left; background-image: url('<?=
|
|
|
|
$this->href('static/gravatar', array('email' => $contact->contact_email))
|
|
|
|
?>')"></div>
|
2014-08-27 16:13:25 +02:00
|
|
|
|
2014-09-05 18:09:22 +02:00
|
|
|
<?php if (! $contact): ?>
|
|
|
|
<?= $this->translate('No such contact') ?>: <?= $contactName ?>
|
|
|
|
</div>
|
|
|
|
<?php return; endif ?>
|
2014-08-27 16:36:52 +02:00
|
|
|
|
2014-09-05 18:09:22 +02:00
|
|
|
<table class="avp" style="width: 70%">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20%"></th>
|
|
|
|
<td><strong><?= $this->escape($contact->contact_alias) ?></strong> (<?= $contact->contact_name ?>)</td>
|
|
|
|
</tr>
|
|
|
|
<?php if ($contact->contact_email): ?>
|
|
|
|
<tr>
|
|
|
|
<th><?= t('Email') ?></th>
|
|
|
|
<td><?= sprintf('<a href="mailto:%1$s">%1$s</a>', $this->escape($contact->contact_email)) ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php if ($contact->contact_pager): ?>
|
|
|
|
<tr>
|
|
|
|
<th><?= t('Pager') ?></th>
|
|
|
|
<td><?= $this->escape($contact->contact_pager) ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php endif ?>
|
|
|
|
<tr>
|
|
|
|
<th><?= t('Hosts') ?></th>
|
|
|
|
<td><?= $this->escape($contactHelper->contactFlags($contact, 'host')) ?><br />
|
|
|
|
<?= $this->escape($contact->contact_notify_host_timeperiod) ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><?= t('Services') ?></th>
|
|
|
|
<td><?= $this->escape($contactHelper->contactFlags($contact, 'service')) ?><br />
|
|
|
|
<?= $this->escape($contact->contact_notify_service_timeperiod) ?></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php if (count($commands)): ?>
|
|
|
|
<h1><?= $this->translate('Commands') ?>:</h1>
|
|
|
|
<ul>
|
|
|
|
<?php foreach ($commands as $command): ?>
|
|
|
|
<li><?= $command->command_name ?></li>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif ?>
|
|
|
|
<h1><?= $this->translate('Notifications sent to this contact') ?></h1>
|
2014-07-18 11:48:26 +02:00
|
|
|
</div>
|
2014-09-05 18:09:22 +02:00
|
|
|
|
|
|
|
<?php if (count($notifications)): ?>
|
|
|
|
<?= $this->render('list/notifications.phtml') ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="content"><?= $this->translate('No notifications have been sent for this contact') ?></div>
|
|
|
|
<?php endif ?>
|