Comments list: display the absolute expire date and time in tooltips

refs #10277
This commit is contained in:
Alexander A. Klimov 2016-02-18 10:39:52 +01:00
parent 97b5800f32
commit c4610ab05d

View File

@ -38,8 +38,9 @@
<span class="comment-icons" data-base-target="_self"> <span class="comment-icons" data-base-target="_self">
<?= $comment->persistent ? $this->icon('attach', 'This comment is persistent.') : '' ?> <?= $comment->persistent ? $this->icon('attach', 'This comment is persistent.') : '' ?>
<?= $comment->expiration ? $this->icon('clock', sprintf( <?= $comment->expiration ? $this->icon('clock', sprintf(
$this->translate('This comment expires %s.'), $this->translate('This comment expires on %s at %s.'),
$this->timeUntil($comment->expiration) $this->formatDate($comment->expiration),
$this->formatTime($comment->expiration)
)) : '' ?> )) : '' ?>
<?php if (isset($delCommentForm)) { <?php if (isset($delCommentForm)) {
$deleteButton = clone $delCommentForm; $deleteButton = clone $delCommentForm;