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