Add support for default channel banners

This commit is contained in:
Omar Roth
2019-06-30 12:59:38 -05:00
parent 556d5b0ca5
commit 48ad744ebf
4 changed files with 39 additions and 29 deletions

View File

@@ -2,13 +2,15 @@
<title><%= channel.author %> - Invidious</title>
<% end %>
<div class="h-box">
<img style="width:100%" src="/ggpht<%= URI.parse(channel.banner.gsub("=w1060", "=w1280")).full_path %>">
</div>
<% if channel.banner %>
<div class="h-box">
<img style="width:100%" src="/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060", "=w1280")).full_path %>">
</div>
<div class="h-box">
<hr>
</div>
<div class="h-box">
<hr>
</div>
<% end %>
<div class="pure-g h-box">
<div class="pure-u-2-3">