From 5bf3c284362905a02406a71fc0cbc396c782c426 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 21 Feb 2019 14:19:05 -0600 Subject: [PATCH] Add better indicator for livestreams --- src/invidious/views/components/item.ecr | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index de1c82ee..ab3dce45 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -53,14 +53,15 @@ <% else %>
+ <% if item.responds_to?(:live_now) && item.live_now %> +

<%= translate(locale, "LIVE") %>

+ <% else %>

<%= recode_length_seconds(item.length_seconds) %>

+ <% end %>
<% end %>

<%= item.title %>

- <% if item.responds_to?(:live_now) && item.live_now %> -

<%= translate(locale, "LIVE") %>

- <% end %>

<%= item.author %>

@@ -87,14 +88,15 @@

<% end %> + <% if item.responds_to?(:live_now) && item.live_now %> +

<%= translate(locale, "LIVE") %>

+ <% else %>

<%= recode_length_seconds(item.length_seconds) %>

+ <% end %> <% end %>

<%= item.title %>

- <% if item.responds_to?(:live_now) && item.live_now %> -

<%= translate(locale, "LIVE") %>

- <% end %>

<%= item.author %>