summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-02-21 14:19:05 -0600
committerOmar Roth <omarroth@hotmail.com>2019-02-21 14:19:05 -0600
commit5bf3c284362905a02406a71fc0cbc396c782c426 (patch)
tree9cf9b8c1fb21a91a6270b440800f41bbdeec15d8
parente25249ce4dce6ed0819ebfa34742aa8234e69ad5 (diff)
downloadinvidious-5bf3c284362905a02406a71fc0cbc396c782c426.tar.gz
invidious-5bf3c284362905a02406a71fc0cbc396c782c426.tar.bz2
invidious-5bf3c284362905a02406a71fc0cbc396c782c426.zip
Add better indicator for livestreams
-rw-r--r--src/invidious/views/components/item.ecr14
1 files 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 %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
+ <% if item.responds_to?(:live_now) && item.live_now %>
+ <p class="length"><i class="icon ion-ios-play-circle"></i> <%= translate(locale, "LIVE") %></p>
+ <% else %>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
+ <% end %>
</div>
<% end %>
<p><%= item.title %></p>
</a>
- <% if item.responds_to?(:live_now) && item.live_now %>
- <p><%= translate(locale, "LIVE") %></p>
- <% end %>
<p>
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
</p>
@@ -87,14 +88,15 @@
</a>
</p>
<% end %>
+ <% if item.responds_to?(:live_now) && item.live_now %>
+ <p class="length"><i class="icon ion-ios-play-circle"></i> <%= translate(locale, "LIVE") %></p>
+ <% else %>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
+ <% end %>
</div>
</a>
<% end %>
<p><a href="/watch?v=<%= item.id %>"><%= item.title %></a></p>
- <% if item.responds_to?(:live_now) && item.live_now %>
- <p><%= translate(locale, "LIVE") %></p>
- <% end %>
<p>
<b><a style="width:100%;" href="/channel/<%= item.ucid %>"><%= item.author %></a></b>
</p>