Skip to content

Commit

Permalink
CSS: Don't pollute time related format helpers w/ text-small
Browse files Browse the repository at this point in the history
fixes #10301
  • Loading branch information
lippserd committed Oct 27, 2015
1 parent 4361ac0 commit bb33a43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/Icinga/Web/View/helpers/format.php
Expand Up @@ -43,7 +43,7 @@
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)
);
Expand All @@ -54,7 +54,7 @@
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)
);
Expand All @@ -65,7 +65,7 @@
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)
);
Expand Down

0 comments on commit bb33a43

Please sign in to comment.