Handle channels with empty home pages
This commit is contained in:
parent
48f46fe01b
commit
b7ff385ff4
29 changed files with 61 additions and 28 deletions
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "Licences",
|
||||
"Privacy": "Privacy",
|
||||
"short": "Short (< 4 minutes)",
|
||||
"long": "Long (> 20 minutes)"
|
||||
"long": "Long (> 20 minutes)",
|
||||
"This channel doesn't have any content.": "This channel doesn't have any content."
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -449,5 +449,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -448,5 +448,6 @@
|
|||
"Licenses": "",
|
||||
"Privacy": "",
|
||||
"short": "",
|
||||
"long": ""
|
||||
"long": "",
|
||||
"This channel doesn't have any content.": ""
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ module Invidious::Routes::Channels
|
|||
items = fetch_channel_home(ucid, channel)
|
||||
|
||||
has_trailer = false
|
||||
if items[0].is_a? Video
|
||||
if !items.empty? && items[0].is_a? Video
|
||||
has_trailer = true
|
||||
end
|
||||
|
||||
|
|
|
@ -57,4 +57,10 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if items.size == 0 %>
|
||||
<h3 class="pure-u-1 h-box">
|
||||
<%= translate(locale, "This channel doesn't have any content.")%>
|
||||
</h3>
|
||||
<% end %>
|
||||
</div>
|
Loading…
Reference in a new issue