Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #5543
- Loading branch information
Showing
11 changed files
with
116 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 58 additions & 16 deletions
74
modules/monitoring/application/views/scripts/partials/comment/comment-detail.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,59 @@ | ||
<?php if ($comment->objecttype === 'service'): ?> | ||
<?= $this->icon('service', $this->translate('Service')) ?> | ||
<?= sprintf( | ||
'%s: %s', | ||
$comment->host_display_name, | ||
$comment->service_display_name | ||
) ?> | ||
<?php else: ?> | ||
<?= $this->icon('host', $this->translate('Host')) ?> | ||
<?= $this->link()->host($comment->host_name, $comment->host_display_name) ?> | ||
<?php endif ?> | ||
<span class="comment-header"> | ||
<?php if ($comment->objecttype === 'service'): ?> | ||
<?= $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 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( | ||
$this->escape($comment->host_display_name), | ||
'monitoring/comment/show', | ||
array('comment_id' => $comment->id), | ||
array( | ||
'title' => sprintf( | ||
$this->translate('Show detailed information for this comment about host %s'), | ||
$comment->host_display_name | ||
), | ||
'class' => 'rowaction' | ||
) | ||
); ?> | ||
<?php endif ?> | ||
<?= $this->translate('by') ?> | ||
<?= $this->escape($comment->author) ?> | ||
|
||
<?= $this->timeAgo($comment->timestamp) ?> | ||
|
||
<span class="pull-right" data-base-target="_self"> | ||
<?= $comment->persistent ? $this->icon('attach', 'This comment is persistent.') : ''; ?> | ||
<?= $comment->expiration ? $this->icon('clock', sprintf( | ||
$this->translate('This comment expires %s.'), | ||
$this->timeUntil($comment->expiration) | ||
)) : '' ?> | ||
<?php | ||
if (isset($delCommentForm)) { | ||
$delCommentForm = clone $delCommentForm; | ||
$delCommentForm->populate( | ||
array( | ||
'comment_id' => $comment->id, | ||
'comment_is_service' => isset($comment->service_description) | ||
) | ||
); | ||
echo $delCommentForm; | ||
} | ||
?> | ||
</span> | ||
</span> | ||
|
||
<br> | ||
<?= $this->icon('comment', $this->translate('Comment')) ?> | ||
<?php if (isset($comment->author)): ?> | ||
[<?= $this->escape($comment->author) ?>] | ||
<?php endif ?> | ||
<?= $this->escape($comment->comment) ?> | ||
<span class="comment-content"> | ||
<?= $this->escape($comment->comment) ?> | ||
</span> |
10 changes: 5 additions & 5 deletions
10
modules/monitoring/application/views/scripts/partials/comment/comment-header.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<table class="action"> | ||
<tr class="state invalid"> | ||
<td class="state" style="width: 12em;"> | ||
<?= $this->render('partials/comment/comment-description.phtml'); ?> | ||
<table> | ||
<tr> | ||
<td class="comment-col"> | ||
<?= $this->render('partials/comment/comment-description.phtml') ?> | ||
</td> | ||
<td> | ||
<?= $this->render('partials/comment/comment-detail.phtml'); ?> | ||
<?= $this->render('partials/comment/comment-detail.phtml') ?> | ||
</td> | ||
</tr> | ||
</table> |
18 changes: 9 additions & 9 deletions
18
modules/monitoring/application/views/scripts/partials/comment/comments-header.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters