@ -118,7 +118,7 @@ class Poll extends ImmutablePureComponent {
/ >
/ >
{ ! showResults && < span className = { classNames ( 'poll__input' , { checkbox : poll . get ( 'multiple' ) , active } ) } / > }
{ ! showResults && < span className = { classNames ( 'poll__input' , { checkbox : poll . get ( 'multiple' ) , active } ) } / > }
{ showResults && < span className = 'poll__number' > { Math . floo r( percent ) } % < / s p a n > }
{ showResults && < span className = 'poll__number' > { Math . round ( percent ) } % < / s p a n > }
{ option . get ( 'title' ) }
{ option . get ( 'title' ) }
< / l a b e l >
< / l a b e l >
@ -146,7 +146,8 @@ class Poll extends ImmutablePureComponent {
< div className = 'poll__footer' >
< div className = 'poll__footer' >
{ ! showResults && < button className = 'button button-secondary' disabled = { disabled } onClick = { this . handleVote } > < FormattedMessage id = 'poll.vote' defaultMessage = 'Vote' / > < / b u t t o n > }
{ ! showResults && < button className = 'button button-secondary' disabled = { disabled } onClick = { this . handleVote } > < FormattedMessage id = 'poll.vote' defaultMessage = 'Vote' / > < / b u t t o n > }
{ showResults && ! this . props . disabled && < span > < button className = 'poll__link' onClick = { this . handleRefresh } > < FormattedMessage id = 'poll.refresh' defaultMessage = 'Refresh' / > < / b u t t o n > · < / s p a n > }
{ showResults && ! this . props . disabled && < span > < button className = 'poll__link' onClick = { this . handleRefresh } > < FormattedMessage id = 'poll.refresh' defaultMessage = 'Refresh' / > < / b u t t o n > · < / s p a n > }
< FormattedMessage id = 'poll.total_votes' defaultMessage = '{count, plural, one {# vote} other {# votes}}' values = { { count : poll . get ( 'votes_count' ) } } / > · { timeRemaining }
< FormattedMessage id = 'poll.total_votes' defaultMessage = '{count, plural, one {# vote} other {# votes}}' values = { { count : poll . get ( 'votes_count' ) } } / >
{ poll . get ( 'expires_at' ) && < span > · { timeRemaining } < / s p a n > }
< / d i v >
< / d i v >
< / d i v >
< / d i v >
) ;
) ;