Skip to content

Commit

Permalink
list/notifications: don't show contact...
Browse files Browse the repository at this point in the history
...when showing notifications for a single contact, other cleanup.

refs #7104
  • Loading branch information
Thomas-Gelf committed Sep 5, 2014
1 parent 9ea377f commit fe6a1b1
Showing 1 changed file with 10 additions and 10 deletions.
@@ -1,15 +1,13 @@

<?php if (!$this->compact): ?>
<div class="controls">
<?= $this->tabs ?>
<div class="dontprint">
<div class="controls">
<?= $this->tabs ?>
<div class="dontprint" style="margin: 1em;">
<?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this) ?>
<?= $this->selectionToolbar('single') ?>
</div>
<?= $this->widget('limiter') ?>
<?php if ($notifications->count() >= 100): ?><br /><?php endif ?>
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
</div>
</div>
<?= $this->widget('limiter') ?>
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
</div>
<?php endif ?>

<div class="content">
Expand Down Expand Up @@ -47,7 +45,7 @@ foreach ($notifications as $notification):
?>
<tr class="state <?= $stateName ?>">
<td class="state"><?= $this->timeSince($notification->notification_start_time) ?></td>
<td>
<td style="font-size: 0.8em">
<?php if ($isService): ?>
<a href="<?= $href ?>"><?= $notification->service ?></a> on <?= $notification->host ?>
<?php else: ?>
Expand All @@ -56,12 +54,14 @@ foreach ($notifications as $notification):
<br />
<?= $this->escape(substr(strip_tags($notification->notification_output), 0, 10000)); ?>
<br />
<?php if (!$this->contact): ?>
<small>
Sent to <a href="<?= $this->href(
'monitoring/show/contact',
array('contact' => $notification->notification_contact)
) ?>"><?= $this->escape($notification->notification_contact) ?></a>
</small>
<?php endif ?>
</td>
</tr>
<?php endforeach ?>
Expand Down

0 comments on commit fe6a1b1

Please sign in to comment.