components/downtime: Add downtime end time information in view
fixes #8845
This commit is contained in:
parent
c06ef8dfed
commit
863330e50d
|
@ -103,7 +103,12 @@ if (isset($delDowntimeForm)) {
|
||||||
<li class="comment-item">
|
<li class="comment-item">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="author"><?= $this->escape($downtime->author_name) ?></span>
|
<span class="author"><?= $this->escape($downtime->author_name) ?></span>
|
||||||
<?= $this->timeAgo($downtime->entry_time) ?>
|
<span class="info">
|
||||||
|
<? printf($this->translate('Added %s.'), $this->timeAgo($downtime->entry_time)) ?>
|
||||||
|
<? if ($downtime->is_in_effect) {
|
||||||
|
printf($this->translate('Expires %s.'), $this->timeUntil($downtime->end));
|
||||||
|
} ?>
|
||||||
|
</span>
|
||||||
<?= $deleteButton ?>
|
<?= $deleteButton ?>
|
||||||
</h3>
|
</h3>
|
||||||
<p> <span class="sr-only"><?= $this->translate('Downtime'); ?></span><?= $state; ?> - <?= str_replace(array('\r\n', '\n'), '<br>', $commentText); ?></p>
|
<p> <span class="sr-only"><?= $this->translate('Downtime'); ?></span><?= $state; ?> - <?= str_replace(array('\r\n', '\n'), '<br>', $commentText); ?></p>
|
||||||
|
|
|
@ -263,7 +263,7 @@ td.state {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 0.857em;
|
font-size: 0.857em;
|
||||||
|
|
||||||
.time-ago {
|
.info {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #919191;
|
color: #919191;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue