2019-07-09 14:31:04 +00:00
|
|
|
<% content_for "header" do %>
|
|
|
|
<title><%= channel.author %> - Invidious</title>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if channel.banner %>
|
|
|
|
<div class="h-box">
|
2021-01-31 18:52:32 +00:00
|
|
|
<img style="width:100%" src="/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>">
|
2019-07-09 14:31:04 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h-box">
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="pure-g h-box">
|
|
|
|
<div class="pure-u-2-3">
|
|
|
|
<div class="channel-profile">
|
2021-01-31 18:52:32 +00:00
|
|
|
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).request_target %>">
|
2019-07-09 14:31:04 +00:00
|
|
|
<span><%= channel.author %></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3" style="text-align:right">
|
2021-06-24 13:10:02 +00:00
|
|
|
<h3 style="text-align:right">
|
2019-07-09 14:31:04 +00:00
|
|
|
<a href="/feed/channel/<%= channel.ucid %>"><i class="icon ion-logo-rss"></i></a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-08-01 00:29:16 +00:00
|
|
|
<div class="h-box">
|
2021-06-24 13:00:55 +00:00
|
|
|
<div id="descriptionWrapper">
|
|
|
|
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
|
|
|
|
</div>
|
2019-08-01 00:29:16 +00:00
|
|
|
</div>
|
|
|
|
|
2019-07-09 14:31:04 +00:00
|
|
|
<div class="h-box">
|
|
|
|
<% ucid = channel.ucid %>
|
|
|
|
<% author = channel.author %>
|
2019-09-13 01:09:23 +00:00
|
|
|
<% sub_count_text = number_to_short_text(channel.sub_count) %>
|
2019-07-09 14:31:04 +00:00
|
|
|
<%= 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>
|
2021-05-16 05:45:14 +00:00
|
|
|
<div class="pure-u-1 pure-md-1-3">
|
|
|
|
<a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Switch Invidious Instance") %></a>
|
|
|
|
</div>
|
2019-07-09 14:31:04 +00:00
|
|
|
<% 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 %>
|
|
|
|
|
2020-03-15 21:46:08 +00:00
|
|
|
<script id="community_data" type="application/json">
|
2020-03-29 21:44:45 +00:00
|
|
|
<%=
|
2020-03-15 21:46:08 +00:00
|
|
|
{
|
2020-03-29 21:44:45 +00:00
|
|
|
"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_pretty_json
|
|
|
|
%>
|
2019-07-09 14:31:04 +00:00
|
|
|
</script>
|
|
|
|
<script src="/js/community.js?v=<%= ASSET_COMMIT %>"></script>
|