mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
list/notifications: don't show contact...
...when showing notifications for a single contact, other cleanup. refs #7104
This commit is contained in:
parent
9ea377fd45
commit
fe6a1b1f0f
@ -2,12 +2,10 @@
|
|||||||
<?php if (!$this->compact): ?>
|
<?php if (!$this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<div class="dontprint">
|
<div class="dontprint" style="margin: 1em;">
|
||||||
<?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this) ?>
|
<?= $this->translate('Sort by') ?> <?= $this->sortControl->render($this) ?>
|
||||||
<?= $this->selectionToolbar('single') ?>
|
|
||||||
</div>
|
</div>
|
||||||
<?= $this->widget('limiter') ?>
|
<?= $this->widget('limiter') ?>
|
||||||
<?php if ($notifications->count() >= 100): ?><br /><?php endif ?>
|
|
||||||
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
|
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@ -47,7 +45,7 @@ foreach ($notifications as $notification):
|
|||||||
?>
|
?>
|
||||||
<tr class="state <?= $stateName ?>">
|
<tr class="state <?= $stateName ?>">
|
||||||
<td class="state"><?= $this->timeSince($notification->notification_start_time) ?></td>
|
<td class="state"><?= $this->timeSince($notification->notification_start_time) ?></td>
|
||||||
<td>
|
<td style="font-size: 0.8em">
|
||||||
<?php if ($isService): ?>
|
<?php if ($isService): ?>
|
||||||
<a href="<?= $href ?>"><?= $notification->service ?></a> on <?= $notification->host ?>
|
<a href="<?= $href ?>"><?= $notification->service ?></a> on <?= $notification->host ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
@ -56,12 +54,14 @@ foreach ($notifications as $notification):
|
|||||||
<br />
|
<br />
|
||||||
<?= $this->escape(substr(strip_tags($notification->notification_output), 0, 10000)); ?>
|
<?= $this->escape(substr(strip_tags($notification->notification_output), 0, 10000)); ?>
|
||||||
<br />
|
<br />
|
||||||
|
<?php if (!$this->contact): ?>
|
||||||
<small>
|
<small>
|
||||||
Sent to <a href="<?= $this->href(
|
Sent to <a href="<?= $this->href(
|
||||||
'monitoring/show/contact',
|
'monitoring/show/contact',
|
||||||
array('contact' => $notification->notification_contact)
|
array('contact' => $notification->notification_contact)
|
||||||
) ?>"><?= $this->escape($notification->notification_contact) ?></a>
|
) ?>"><?= $this->escape($notification->notification_contact) ?></a>
|
||||||
</small>
|
</small>
|
||||||
|
<?php endif ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user