2018-03-25 12:38:35 +09:00
|
|
|
<% content_for "header" do %>
|
2018-12-21 06:32:09 +09:00
|
|
|
<title><%= translate(locale, "Subscriptions") %> - Invidious</title>
|
2019-03-08 04:34:33 +09:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/private?token=<%= token %>" />
|
2018-03-25 12:38:35 +09:00
|
|
|
<% end %>
|
|
|
|
|
2019-02-25 02:51:33 +09:00
|
|
|
<%= rendered "components/feed_menu" %>
|
|
|
|
|
2018-07-29 23:47:32 +09:00
|
|
|
<div class="pure-g h-box">
|
2018-12-21 02:05:54 +09:00
|
|
|
<div class="pure-u-1-3">
|
2018-07-21 01:19:49 +09:00
|
|
|
<h3>
|
2018-12-21 06:32:09 +09:00
|
|
|
<a href="/subscription_manager"><%= translate(locale, "Manage subscriptions") %></a>
|
2018-07-21 01:19:49 +09:00
|
|
|
</h3>
|
|
|
|
</div>
|
2021-07-16 06:01:36 +09:00
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<h3 style="text-align:center">
|
2018-12-21 06:32:09 +09:00
|
|
|
<a href="/feed/history"><%= translate(locale, "Watch history") %></a>
|
2018-12-21 02:05:54 +09:00
|
|
|
</h3>
|
|
|
|
</div>
|
2021-07-16 06:01:36 +09:00
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<h3 style="text-align:right">
|
2019-03-08 04:34:33 +09:00
|
|
|
<a href="/feed/private?token=<%= token %>"><i class="icon ion-logo-rss"></i></a>
|
2018-07-21 01:19:49 +09:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-06 09:48:55 +09:00
|
|
|
|
2023-01-06 08:08:05 +09:00
|
|
|
<% if CONFIG.enable_user_notifications %>
|
|
|
|
|
2019-05-02 10:03:39 +09:00
|
|
|
<center>
|
2022-01-05 10:42:49 +09:00
|
|
|
<%= translate_count(locale, "subscriptions_unseen_notifs_count", notifications.size) %>
|
2019-05-02 10:03:39 +09:00
|
|
|
</center>
|
2018-08-31 06:52:29 +09:00
|
|
|
|
|
|
|
<% if !notifications.empty? %>
|
2019-05-02 10:03:39 +09:00
|
|
|
<div class="h-box">
|
|
|
|
<hr>
|
|
|
|
</div>
|
2018-08-31 06:52:29 +09:00
|
|
|
<% end %>
|
|
|
|
|
2018-11-20 09:43:06 +09:00
|
|
|
<div class="pure-g">
|
2021-07-16 06:01:36 +09:00
|
|
|
<% notifications.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
|
|
|
<% end %>
|
2018-11-20 09:43:06 +09:00
|
|
|
</div>
|
2018-08-07 03:49:52 +09:00
|
|
|
|
2023-01-06 08:08:05 +09:00
|
|
|
<% end %>
|
|
|
|
|
2018-08-07 03:49:52 +09:00
|
|
|
<div class="h-box">
|
|
|
|
<hr>
|
|
|
|
</div>
|
2018-05-08 11:57:47 +09:00
|
|
|
|
2020-03-16 06:46:08 +09:00
|
|
|
<script id="watched_data" type="application/json">
|
2020-03-30 06:44:45 +09:00
|
|
|
<%=
|
2020-03-16 06:46:08 +09:00
|
|
|
{
|
2020-03-30 06:44:45 +09:00
|
|
|
"csrf_token" => URI.encode_www_form(env.get?("csrf_token").try &.as(String) || "")
|
|
|
|
}.to_pretty_json
|
|
|
|
%>
|
2019-05-16 03:30:30 +09:00
|
|
|
</script>
|
|
|
|
<script src="/js/watched_widget.js"></script>
|
|
|
|
|
2018-11-20 09:43:06 +09:00
|
|
|
<div class="pure-g">
|
2021-07-16 06:01:36 +09:00
|
|
|
<% videos.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
|
|
|
<% end %>
|
2018-11-20 09:43:06 +09:00
|
|
|
</div>
|
2018-03-25 12:38:35 +09:00
|
|
|
|
2019-03-02 07:47:06 +09:00
|
|
|
<div class="pure-g h-box">
|
2019-04-15 07:04:52 +09:00
|
|
|
<div class="pure-u-1 pure-u-lg-1-5">
|
2019-06-09 06:04:55 +09:00
|
|
|
<% if page > 1 %>
|
|
|
|
<a href="/feed/subscriptions?page=<%= page - 1 %><% if env.params.query["max_results"]? %>&max_results=<%= max_results %><% end %>">
|
2019-05-02 10:03:39 +09:00
|
|
|
<%= translate(locale, "Previous page") %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-03-25 12:38:35 +09:00
|
|
|
</div>
|
2019-04-15 07:04:52 +09:00
|
|
|
<div class="pure-u-1 pure-u-lg-3-5"></div>
|
2019-05-02 10:03:39 +09:00
|
|
|
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
|
2018-08-15 09:15:33 +09:00
|
|
|
<% if (videos.size + notifications.size) == max_results %>
|
2019-06-09 06:04:55 +09:00
|
|
|
<a href="/feed/subscriptions?page=<%= page + 1 %><% if env.params.query["max_results"]? %>&max_results=<%= max_results %><% end %>">
|
2018-12-21 06:32:09 +09:00
|
|
|
<%= translate(locale, "Next page") %>
|
|
|
|
</a>
|
2018-08-15 09:15:33 +09:00
|
|
|
<% end %>
|
2018-03-25 12:38:35 +09:00
|
|
|
</div>
|
2018-08-18 01:04:38 +09:00
|
|
|
</div>
|