mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-26 00:59:24 +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)}
|
span #{kFormatter(post.ups)}
|
||||||
if user_preferences.show_upvoted_percentage === 'true'
|
if user_preferences.show_upvoted_percentage === 'true'
|
||||||
- let downvoted = parseInt(post.ups * (1 - post.upvote_ratio))
|
- 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
|
div.arrow.down
|
||||||
.title
|
.title
|
||||||
a(href="" + post.url + "", rel="noopener noreferrer")
|
a(href="" + post.url + "", rel="noopener noreferrer")
|
||||||
|
Loading…
Reference in New Issue
Block a user