mirror of
https://github.com/iv-org/invidious.git
synced 2025-02-01 17:15:14 -05:00
minute badge added to watch page
This commit is contained in:
parent
7993784701
commit
a06166a014
@ -5,6 +5,17 @@ body {
|
||||
Arial, sans-serif;
|
||||
}
|
||||
|
||||
.length-watch-page{
|
||||
position: relative;
|
||||
background-color: rgba(35, 35, 35, 0.75);
|
||||
color: #fff;
|
||||
border-radius: 2px;
|
||||
padding: 4px;
|
||||
font-size: 20px;
|
||||
right: 0.25em;
|
||||
bottom: 0.25em;
|
||||
}
|
||||
|
||||
#contents {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -85,8 +85,16 @@ we're going to need to do it here in order to allow for translations.
|
||||
<i class="icon ion-md-headset"></i>
|
||||
</a>
|
||||
<% end %>
|
||||
<span class="length-watch-page">
|
||||
<% if (video.length_seconds // 60) < 60 %>
|
||||
<%= video.length_seconds // 60 %> min
|
||||
<% else %>
|
||||
<%= video.length_seconds // 3600 %> hr <%= (video.length_seconds % 3600) // 60 %> min
|
||||
<% end %>
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
|
||||
<% if !video.is_listed %>
|
||||
<h3>
|
||||
<i class="icon ion-ios-unlock"></i> <%= translate(locale, "Unlisted") %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user