diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:46:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:46:43 +0000 |
commit | 3e02d5aff85babc3ffbfcf52313f2108e313aa23 (patch) | |
tree | b01f3923360c20a6a504aff42d45670c58af3ec5 /modules/monitoring/application/views/scripts/comment/show.phtml | |
parent | Initial commit. (diff) | |
download | icingaweb2-3e02d5aff85babc3ffbfcf52313f2108e313aa23.tar.xz icingaweb2-3e02d5aff85babc3ffbfcf52313f2108e313aa23.zip |
Adding upstream version 2.12.1.upstream/2.12.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules/monitoring/application/views/scripts/comment/show.phtml')
-rw-r--r-- | modules/monitoring/application/views/scripts/comment/show.phtml | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/modules/monitoring/application/views/scripts/comment/show.phtml b/modules/monitoring/application/views/scripts/comment/show.phtml new file mode 100644 index 0000000..3cbfb76 --- /dev/null +++ b/modules/monitoring/application/views/scripts/comment/show.phtml @@ -0,0 +1,86 @@ +<div class="controls"> + <?php if (! $this->compact): ?> + <?= $this->tabs; ?> + <?php endif ?> + + <div data-base-target='_next'> + <?= $this->render('partials/comment/comment-header.phtml'); ?> + </div> +</div> +<div class="content"> + +<h2><?= $this->translate('Comment detail information') ?></h2> +<table class="name-value-table"> + <tbody> + <tr> + <?php if ($this->comment->objecttype === 'service'): ?> + <th> <?= $this->translate('Service') ?> </th> + <td> + <?= $this->icon('service', $this->translate('Service')); ?> + <?= $this->link()->service( + $this->comment->service_description, + $this->comment->service_display_name, + $this->comment->host_name, + $this->comment->host_display_name + ); + ?> + </td> + <?php else: ?> + <th> <?= $this->translate('Host') ?> </th> + <td> + <?= $this->icon('host', $this->translate('Host')); ?> + <?= $this->link()->host( + $this->comment->host_name, + $this->comment->host_display_name + ); + ?> + </td> + <?php endif ?> + </tr> + + <tr> + <th><?= $this->translate('Author') ?></th> + <td><?= $this->icon('user', $this->translate('User')) ?> <?= $this->escape($this->comment->author) ?></td> + </tr> + + <tr> + <th><?= $this->translate('Persistent') ?></th> + <td><?= $this->escape($this->comment->persistent) ? $this->translate('Yes') : $this->translate('No') ?></td> + </tr> + + <tr> + <th><?= $this->translate('Created') ?></th> + <td><?= $this->formatDateTime($this->comment->timestamp) ?></td> + </tr> + + <tr> + <th><?= $this->translate('Expires') ?></th> + <td> + <?= $this->comment->expiration ? sprintf( + $this->translate('This comment expires on %s at %s.'), + $this->formatDate($this->comment->expiration), + $this->formatTime($this->comment->expiration) + ) : $this->translate('This comment does not expire.'); + ?> + </td> + </tr> + + <tr> + <th><?= $this->translate('Comment') ?></th> + <td><?= $this->nl2br($this->createTicketLinks($this->markdown($comment->comment))) ?></td> + </tr> + + <?php if (isset($delCommentForm)): // Form is unset if the current user lacks the respective permission ?> + <tr class="newsection"> + <th><?= $this->translate('Commands') ?></th> + <td> + <?= $delCommentForm ?> + </td> + </tr> + <?php endif ?> + + </tbody> +</table> + +</div> + |