CSS: Don't pollute time related format helpers w/ text-small

fixes #10301
This commit is contained in:
Eric Lippmann 2015-10-27 16:23:32 +01:00
parent 4361ac00ca
commit bb33a43cb9
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ $this->addHelperFunction('timeAgo', function ($time, $timeOnly = false) {
return '';
}
return sprintf(
'<span class="text-small time-ago" title="%s">%s</span>',
'<span class="relative-time" title="%s">%s</span>',
DateFormatter::formatDateTime($time),
DateFormatter::timeAgo($time, $timeOnly)
);
@ -54,7 +54,7 @@ $this->addHelperFunction('timeSince', function ($time, $timeOnly = false) {
return '';
}
return sprintf(
'<span class="text-small time-since" title="%s">%s</span>',
'<span class="relative-time" title="%s">%s</span>',
DateFormatter::formatDateTime($time),
DateFormatter::timeSince($time, $timeOnly)
);
@ -65,7 +65,7 @@ $this->addHelperFunction('timeUntil', function ($time, $timeOnly = false) {
return '';
}
return sprintf(
'<span class="text-small time-until" title="%s">%s</span>',
'<span class="relative-time" title="%s">%s</span>',
DateFormatter::formatDateTime($time),
DateFormatter::timeUntil($time, $timeOnly)
);