mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
Fix remove view count patch
This commit is contained in:
@@ -26,24 +26,22 @@ index a24423df..d91d345e 100644
|
||||
<% end %>
|
||||
</div>
|
||||
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
|
||||
index fada6361..b41274a8 100644
|
||||
index 89632dc5..b0002911 100644
|
||||
--- a/src/invidious/views/watch.ecr
|
||||
+++ b/src/invidious/views/watch.ecr
|
||||
@@ -351,14 +351,6 @@ we're going to need to do it here in order to allow for translations.
|
||||
@@ -352,13 +352,6 @@ we're going to need to do it here in order to allow for translations.
|
||||
<b style="width:100%"><%= rv["author"]? %><% if rv["author_verified"]? == "true" %> <i class="icon ion ion-md-checkmark-circle"></i><% end %></b>
|
||||
<% end %>
|
||||
</div>
|
||||
-
|
||||
- <div class="pure-u-10-24" style="text-align:right">
|
||||
- <b class="width:100%"><%=
|
||||
- views = rv["view_count"]?.try &.to_i?
|
||||
- views ||= rv["view_count_short"]?.try { |x| short_text_to_number(x) }
|
||||
- translate_count(locale, "generic_views_count", views || 0, NumberFormatting::Short)
|
||||
- views = short_text_to_number(rv["short_view_count"]? || "0")
|
||||
- translate_count(locale, "generic_views_count", views, NumberFormatting::Short)
|
||||
- %></b>
|
||||
- </div>
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
--
|
||||
2.39.5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user