2015-08-25 22:13:31 +00:00
|
|
|
- var sec = Math.round(this.props.duration / 1000);
|
|
|
|
- var min = sec >= 60 ? Math.round(sec / 60) : 0;
|
|
|
|
- var suffix = this.props.withSuffix ? 'in ' : '';
|
|
|
|
span(title= sec + ' sec')= suffix + (min ? min + ' min' : sec + ' sec')
|