comments overview: Improve link titles
This commit is contained in:
parent
d6f756c670
commit
8b4c2c459a
|
@ -24,44 +24,38 @@ if (count($comments) === 0) {
|
|||
data-icinga-multiselect-url="/icingaweb2/monitoring/comments/show"
|
||||
data-icinga-multiselect-data="comment_id">
|
||||
<tbody>
|
||||
<?php foreach ($comments as $comment):
|
||||
$this->comment = $comment; ?>
|
||||
|
||||
<?php foreach ($comments as $comment): ?>
|
||||
<tr class="state invalid">
|
||||
<td class="state" style="width: 12em;">
|
||||
<?= $this->render('partials/comment/comment-description.phtml'); ?>
|
||||
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($comment->objecttype === 'service'): ?>
|
||||
<?= $this->icon('service', $this->translate('Service')); ?>
|
||||
|
||||
<?= $this->qlink(
|
||||
sprintf(
|
||||
'%s: %s',
|
||||
$comment->host_display_name,
|
||||
$comment->service_display_name
|
||||
),
|
||||
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
||||
$this->escape($comment->host_display_name) . ': ' . $this->escape($comment->service_display_name),
|
||||
'monitoring/comment/show',
|
||||
array('comment_id' => $comment->id),
|
||||
array(
|
||||
'title' => sprintf(
|
||||
$this->translate('Show detailed information for comment on %s for %s'),
|
||||
$comment->service_display_name,
|
||||
$comment->host_display_name
|
||||
),
|
||||
'class' => 'rowaction'
|
||||
)) ?>
|
||||
'title' => sprintf(
|
||||
$this->translate('Show detailed information for this comment about service %s on host %s'),
|
||||
$comment->service_display_name,
|
||||
$comment->host_display_name
|
||||
),
|
||||
'class' => 'rowaction'
|
||||
)
|
||||
); ?>
|
||||
<?php else: ?>
|
||||
<?= $this->icon('host', $this->translate('Host')); ?>
|
||||
|
||||
<?= $this->qlink(
|
||||
$comment->host_display_name,
|
||||
<?= $this->icon('host', $this->translate('Host')); ?> <?= $this->qlink(
|
||||
$this->escape($comment->host_display_name),
|
||||
'monitoring/comment/show',
|
||||
array('comment_id' => $comment->id),
|
||||
array('title' => sprintf(
|
||||
$this->translate('Show detailed information for comment on %s'),
|
||||
array(
|
||||
'title' => sprintf(
|
||||
$this->translate('Show detailed information for this comment about host %s'),
|
||||
$comment->host_display_name
|
||||
))) ?>
|
||||
)
|
||||
)
|
||||
); ?>
|
||||
<?php endif ?>
|
||||
<br>
|
||||
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
|
||||
|
|
Loading…
Reference in New Issue