components/downtime: Add downtime end time information in view

fixes #8845
This commit is contained in:
Alexander Fuhr 2015-08-03 12:37:09 +02:00
parent c06ef8dfed
commit 863330e50d
2 changed files with 7 additions and 2 deletions

View File

@ -103,7 +103,12 @@ if (isset($delDowntimeForm)) {
<li class="comment-item">
<h3>
<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 ?>
</h3>
<p> <span class="sr-only"><?= $this->translate('Downtime'); ?></span><?= $state; ?> - <?= str_replace(array('\r\n', '\n'), '<br>', $commentText); ?></p>

View File

@ -263,7 +263,7 @@ td.state {
margin: 0;
font-size: 0.857em;
.time-ago {
.info {
font-style: italic;
color: #919191;
}