mirror of
https://github.com/iv-org/invidious.git
synced 2025-09-15 08:18:30 +00:00
Merge 9800e4ea7d
into 325e013e0d
This commit is contained in:
commit
c8062b3cae
@ -354,9 +354,8 @@ we're going to need to do it here in order to allow for translations.
|
|||||||
|
|
||||||
<div class="pure-u-10-24" style="text-align:right">
|
<div class="pure-u-10-24" style="text-align:right">
|
||||||
<b class="width:100%"><%=
|
<b class="width:100%"><%=
|
||||||
views = rv["view_count"]?.try &.to_i?
|
views = short_text_to_number(rv["short_view_count"]? || "0")
|
||||||
views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
|
translate_count(locale, "generic_views_count", views, NumberFormatting::Short)
|
||||||
translate_count(locale, "generic_views_count", views || 0, NumberFormatting::Short)
|
|
||||||
%></b>
|
%></b>
|
||||||
</div>
|
</div>
|
||||||
</h5>
|
</h5>
|
||||||
|
Loading…
Reference in New Issue
Block a user