Add view count to video items

This commit is contained in:
Omar Roth
2019-04-14 17:43:44 -05:00
parent efe86c37b2
commit b51fd7fc13
13 changed files with 28 additions and 16 deletions

View File

@@ -189,7 +189,9 @@ def number_to_short_text(number)
text = text.rchop(".0")
if number / 1000000 != 0
if number / 1_000_000_000 != 0
text += "B"
elsif number / 1_000_000 != 0
text += "M"
elsif number / 1000 != 0
text += "K"