mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
81 lines
2.6 KiB
Text
81 lines
2.6 KiB
Text
|
<% content_for "header" do %>
|
||
|
<title><%= channel.author %> - Invidious</title>
|
||
|
<% end %>
|
||
|
|
||
|
<% 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>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="pure-g h-box">
|
||
|
<div class="pure-u-2-3">
|
||
|
<div class="channel-profile">
|
||
|
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).full_path %>">
|
||
|
<span><%= channel.author %></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="pure-u-1-3" style="text-align:right">
|
||
|
<h3>
|
||
|
<a href="/feed/channel/<%= channel.ucid %>"><i class="icon ion-logo-rss"></i></a>
|
||
|
</h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="h-box">
|
||
|
<% ucid = channel.ucid %>
|
||
|
<% author = channel.author %>
|
||
|
<% sub_count_text = number_to_short_text(channel.sub_count) %>
|
||
|
<%= rendered "components/subscribe_widget" %>
|
||
|
</div>
|
||
|
|
||
|
<div class="pure-g h-box">
|
||
|
<div class="pure-u-1-3">
|
||
|
<a href="https://www.youtube.com/channel/<%= channel.ucid %>/community"><%= translate(locale, "View channel on YouTube") %></a>
|
||
|
<% if !channel.auto_generated %>
|
||
|
<div class="pure-u-1 pure-md-1-3">
|
||
|
<a href="/channel/<%= channel.ucid %>"><%= translate(locale, "Videos") %></a>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<div class="pure-u-1 pure-md-1-3">
|
||
|
<a href="/channel/<%= channel.ucid %>/playlists"><%= translate(locale, "Playlists") %></a>
|
||
|
</div>
|
||
|
<div class="pure-u-1 pure-md-1-3">
|
||
|
<% if channel.tabs.includes? "community" %>
|
||
|
<b><%= translate(locale, "Community") %></b>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="pure-u-2-3"></div>
|
||
|
</div>
|
||
|
|
||
|
<div class="h-box">
|
||
|
<hr>
|
||
|
</div>
|
||
|
|
||
|
<% if error_message %>
|
||
|
<div class="h-box">
|
||
|
<p><%= error_message %></p>
|
||
|
</div>
|
||
|
<% else %>
|
||
|
<div class="h-box pure-g" id="comments">
|
||
|
<%= template_youtube_comments(items.not_nil!, locale, thin_mode) %>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
|
||
|
<script>
|
||
|
var community_data = {
|
||
|
ucid: '<%= channel.ucid %>',
|
||
|
youtube_comments_text: '<%= HTML.escape(translate(locale, "View YouTube comments")) %>',
|
||
|
comments_text: '<%= HTML.escape(translate(locale, "View `x` comments", "{commentCount}")) %>',
|
||
|
hide_replies_text: '<%= HTML.escape(translate(locale, "Hide replies")) %>',
|
||
|
show_replies_text: '<%= HTML.escape(translate(locale, "Show replies")) %>',
|
||
|
preferences: <%= env.get("preferences").as(Preferences).to_json %>,
|
||
|
}
|
||
|
</script>
|
||
|
<script src="/js/community.js?v=<%= ASSET_COMMIT %>"></script>
|