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-url="/icingaweb2/monitoring/comments/show"
|
||||||
data-icinga-multiselect-data="comment_id">
|
data-icinga-multiselect-data="comment_id">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($comments as $comment):
|
<?php foreach ($comments as $comment): ?>
|
||||||
$this->comment = $comment; ?>
|
|
||||||
|
|
||||||
<tr class="state invalid">
|
<tr class="state invalid">
|
||||||
<td class="state" style="width: 12em;">
|
<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>
|
||||||
<td>
|
<td>
|
||||||
<?php if ($comment->objecttype === 'service'): ?>
|
<?php if ($comment->objecttype === 'service'): ?>
|
||||||
<?= $this->icon('service', $this->translate('Service')); ?>
|
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
||||||
|
$this->escape($comment->host_display_name) . ': ' . $this->escape($comment->service_display_name),
|
||||||
<?= $this->qlink(
|
|
||||||
sprintf(
|
|
||||||
'%s: %s',
|
|
||||||
$comment->host_display_name,
|
|
||||||
$comment->service_display_name
|
|
||||||
),
|
|
||||||
'monitoring/comment/show',
|
'monitoring/comment/show',
|
||||||
array('comment_id' => $comment->id),
|
array('comment_id' => $comment->id),
|
||||||
array(
|
array(
|
||||||
'title' => sprintf(
|
'title' => sprintf(
|
||||||
$this->translate('Show detailed information for comment on %s for %s'),
|
$this->translate('Show detailed information for this comment about service %s on host %s'),
|
||||||
$comment->service_display_name,
|
$comment->service_display_name,
|
||||||
$comment->host_display_name
|
$comment->host_display_name
|
||||||
),
|
),
|
||||||
'class' => 'rowaction'
|
'class' => 'rowaction'
|
||||||
)) ?>
|
)
|
||||||
|
); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('host', $this->translate('Host')); ?>
|
<?= $this->icon('host', $this->translate('Host')); ?> <?= $this->qlink(
|
||||||
|
$this->escape($comment->host_display_name),
|
||||||
<?= $this->qlink(
|
|
||||||
$comment->host_display_name,
|
|
||||||
'monitoring/comment/show',
|
'monitoring/comment/show',
|
||||||
array('comment_id' => $comment->id),
|
array('comment_id' => $comment->id),
|
||||||
array('title' => sprintf(
|
array(
|
||||||
$this->translate('Show detailed information for comment on %s'),
|
'title' => sprintf(
|
||||||
|
$this->translate('Show detailed information for this comment about host %s'),
|
||||||
$comment->host_display_name
|
$comment->host_display_name
|
||||||
))) ?>
|
)
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<br>
|
<br>
|
||||||
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
|
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
|
||||||
|
|
Loading…
Reference in New Issue