2021-07-16 02:31:36 +05:30
|
|
|
<% ucid = channel.ucid %>
|
|
|
|
<% author = HTML.escape(channel.author) %>
|
|
|
|
|
2019-07-09 20:01:04 +05:30
|
|
|
<% content_for "header" do %>
|
2021-07-16 02:31:36 +05:30
|
|
|
<title><%= author %> - Invidious</title>
|
2019-07-09 20:01:04 +05:30
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if channel.banner %>
|
|
|
|
<div class="h-box">
|
2021-02-01 00:22:32 +05:30
|
|
|
<img style="width:100%" src="/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>">
|
2019-07-09 20:01:04 +05:30
|
|
|
</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-02-01 00:22:32 +05:30
|
|
|
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).request_target %>">
|
2021-07-16 02:31:36 +05:30
|
|
|
<span><%= author %></span>
|
2019-07-09 20:01:04 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3" style="text-align:right">
|
2021-06-24 18:40:02 +05:30
|
|
|
<h3 style="text-align:right">
|
2019-07-09 20:01:04 +05:30
|
|
|
<a href="/feed/channel/<%= channel.ucid %>"><i class="icon ion-logo-rss"></i></a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-08-01 05:59:16 +05:30
|
|
|
<div class="h-box">
|
2021-06-24 18:30:55 +05:30
|
|
|
<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 05:59:16 +05:30
|
|
|
</div>
|
|
|
|
|
2019-07-09 20:01:04 +05:30
|
|
|
<div class="h-box">
|
2019-09-13 06:39:23 +05:30
|
|
|
<% sub_count_text = number_to_short_text(channel.sub_count) %>
|
2019-07-09 20:01:04 +05:30
|
|
|
<%= 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 11:15:14 +05:30
|
|
|
<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 20:01:04 +05:30
|
|
|
<% 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-16 03:16:08 +05:30
|
|
|
<script id="community_data" type="application/json">
|
2020-03-30 03:14:45 +05:30
|
|
|
<%=
|
2020-03-16 03:16:08 +05:30
|
|
|
{
|
2021-07-16 02:31:36 +05:30
|
|
|
"ucid" => ucid,
|
2020-03-30 03:14:45 +05:30
|
|
|
"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 20:01:04 +05:30
|
|
|
</script>
|
|
|
|
<script src="/js/community.js?v=<%= ASSET_COMMIT %>"></script>
|