2022-12-05 07:19:25 +09:00
|
|
|
<%-
|
|
|
|
ucid = channel.ucid
|
|
|
|
author = HTML.escape(channel.author)
|
|
|
|
channel_profile_pic = URI.parse(channel.author_thumbnail).request_target
|
|
|
|
|
|
|
|
relative_url =
|
|
|
|
case selected_tab
|
|
|
|
when .shorts? then "/channel/#{ucid}/shorts"
|
|
|
|
when .streams? then "/channel/#{ucid}/streams"
|
|
|
|
when .playlists? then "/channel/#{ucid}/playlists"
|
2022-12-05 08:50:04 +09:00
|
|
|
when .channels? then "/channel/#{ucid}/channels"
|
2022-12-05 07:19:25 +09:00
|
|
|
else
|
|
|
|
"/channel/#{ucid}"
|
|
|
|
end
|
|
|
|
|
|
|
|
youtube_url = "https://www.youtube.com#{relative_url}"
|
|
|
|
redirect_url = Invidious::Frontend::Misc.redirect_url(env)
|
|
|
|
-%>
|
2021-07-16 06:01:36 +09:00
|
|
|
|
2018-06-03 09:52:58 +09:00
|
|
|
<% content_for "header" do %>
|
2022-12-05 07:19:25 +09:00
|
|
|
<%- if selected_tab.videos? -%>
|
2022-10-15 23:07:47 +09:00
|
|
|
<meta name="description" content="<%= channel.description %>">
|
|
|
|
<meta property="og:site_name" content="Invidious">
|
|
|
|
<meta property="og:url" content="<%= HOST_URL %>/channel/<%= ucid %>">
|
|
|
|
<meta property="og:title" content="<%= author %>">
|
|
|
|
<meta property="og:image" content="/ggpht<%= channel_profile_pic %>">
|
|
|
|
<meta property="og:description" content="<%= channel.description %>">
|
|
|
|
<meta name="twitter:card" content="summary">
|
|
|
|
<meta name="twitter:url" content="<%= HOST_URL %>/channel/<%= ucid %>">
|
|
|
|
<meta name="twitter:title" content="<%= author %>">
|
|
|
|
<meta name="twitter:description" content="<%= channel.description %>">
|
|
|
|
<meta name="twitter:image" content="/ggpht<%= channel_profile_pic %>">
|
2021-07-16 06:01:36 +09:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/channel/<%= ucid %>" />
|
2022-12-05 07:19:25 +09:00
|
|
|
<%- end -%>
|
2019-06-29 10:48:24 +09:00
|
|
|
|
2022-12-05 07:19:25 +09:00
|
|
|
<link rel="alternate" href="<%= youtube_url %>">
|
|
|
|
<title><%= author %> - Invidious</title>
|
2019-07-01 02:59:38 +09:00
|
|
|
<% end %>
|
2019-06-29 10:48:24 +09:00
|
|
|
|
2022-12-05 07:19:25 +09:00
|
|
|
<%= rendered "components/channel_info" %>
|
2018-11-14 10:04:25 +09:00
|
|
|
|
|
|
|
<div class="h-box">
|
|
|
|
<hr>
|
|
|
|
</div>
|
2018-08-18 00:57:08 +09:00
|
|
|
|
2018-06-03 09:52:58 +09:00
|
|
|
<div class="pure-g">
|
2021-07-16 06:01:36 +09:00
|
|
|
<% items.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
|
|
|
<% end %>
|
2019-03-24 04:05:13 +09:00
|
|
|
</div>
|
2018-06-03 09:52:58 +09:00
|
|
|
|
2023-02-20 04:41:18 +09:00
|
|
|
<script src="/js/watched_indicator.js"></script>
|
2022-11-09 07:18:24 +09:00
|
|
|
|
2018-08-05 13:07:38 +09:00
|
|
|
<div class="pure-g h-box">
|
2022-11-30 08:29:48 +09:00
|
|
|
<div class="pure-u-1 pure-u-md-4-5"></div>
|
2019-05-02 10:03:39 +09:00
|
|
|
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
2022-11-30 08:29:48 +09:00
|
|
|
<% if next_continuation %>
|
2022-12-05 07:19:25 +09:00
|
|
|
<a href="<%= relative_url %>?continuation=<%= next_continuation %><% if sort_options.any? sort_by %>&sort_by=<%= sort_by %><% end %>">
|
2019-05-02 10:03:39 +09:00
|
|
|
<%= translate(locale, "Next page") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-06-03 09:52:58 +09:00
|
|
|
</div>
|
2018-08-18 01:04:38 +09:00
|
|
|
</div>
|