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