mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 16:49:26 +01:00
fix upvote ratio percentage rounding #181
This commit is contained in:
parent
dab4e8a8fe
commit
b69c953148
@ -43,7 +43,7 @@ html
|
||||
span #{kFormatter(post.ups)}
|
||||
if user_preferences.show_upvoted_percentage === 'true'
|
||||
- let downvoted = parseInt(post.ups * (1 - post.upvote_ratio))
|
||||
span.ratio(title="~"+ downvoted +" downvoted") #{post.upvote_ratio * 100}%
|
||||
span.ratio(title="~"+ downvoted +" downvoted") #{(post.upvote_ratio * 100).toFixed(0)}%
|
||||
div.arrow.down
|
||||
.title
|
||||
a(href="" + post.url + "", rel="noopener noreferrer")
|
||||
|
Loading…
Reference in New Issue
Block a user