CommentDetail: Properly differentiate comments and acknowledgements

fixes #466
This commit is contained in:
Johannes Meyer 2021-12-08 09:34:55 +01:00
parent cc9de13f7d
commit 020139b472

View file

@ -44,7 +44,9 @@ class CommentDetail extends BaseHtmlElement
$details[] = Html::tag(
'p',
Html::sprintf(
t('This acknowledgement expires %s.', '..<time-until>'),
$this->comment->entry_type === 'ack'
? t('This acknowledgement expires %s.', '..<time-until>')
: t('This comment expires %s.', '..<time-until>'),
new TimeUntil($this->comment->expire_time)
)
);