2018-03-25 09:08:35 +05:30
|
|
|
<% content_for "header" do %>
|
|
|
|
<title>Subscriptions - Invidious</title>
|
|
|
|
<% end %>
|
|
|
|
|
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>
|
|
|
|
<a href="/subscription_manager">Manage subscriptions</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2018-12-20 22:35:54 +05:30
|
|
|
<div class="pure-u-1-3" style="text-align:center;">
|
|
|
|
<h3>
|
|
|
|
<a href="/feed/history">Watch history</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2018-07-25 06:04:49 +05:30
|
|
|
<div class="pure-u-1-3" style="text-align:right;">
|
2018-07-20 21:49:49 +05:30
|
|
|
<h3>
|
2018-07-31 05:08:55 +05:30
|
|
|
<a href="/feed/private?token=<%= user.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
|
|
|
|
2018-08-07 00:18:02 +05:30
|
|
|
<center><%= notifications.size %> unseen notifications</center>
|
2018-08-31 03:22:29 +05:30
|
|
|
|
|
|
|
<% if !notifications.empty? %>
|
|
|
|
<div class="h-box">
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2018-11-20 06:13:06 +05:30
|
|
|
<div class="pure-g">
|
2018-08-07 00:18:02 +05:30
|
|
|
<% notifications.each_slice(4) do |slice| %>
|
2018-09-20 20:06:09 +05:30
|
|
|
<% slice.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
2018-08-07 00:18:02 +05:30
|
|
|
<% 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
|
|
|
|
2018-11-20 06:13:06 +05:30
|
|
|
<div class="pure-g">
|
2018-03-25 09:08:35 +05:30
|
|
|
<% videos.each_slice(4) do |slice| %>
|
2018-09-20 20:06:09 +05:30
|
|
|
<% slice.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
2018-06-02 03:56:00 +05:30
|
|
|
<% end %>
|
2018-03-25 09:08:35 +05:30
|
|
|
<% end %>
|
2018-11-20 06:13:06 +05:30
|
|
|
</div>
|
2018-03-25 09:08:35 +05:30
|
|
|
|
2018-11-20 09:36:59 +05:30
|
|
|
<script>
|
|
|
|
function mark_watched(target) {
|
|
|
|
var tile = target.parentNode.parentNode.parentNode.parentNode;
|
|
|
|
tile.style.display = "none";
|
|
|
|
|
|
|
|
var url = "/mark_watched?redirect=false&id=" + target.getAttribute("data-id");
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.responseType = "json";
|
|
|
|
xhr.timeout = 20000;
|
|
|
|
xhr.open("GET", url, true);
|
|
|
|
xhr.send();
|
|
|
|
|
|
|
|
xhr.onreadystatechange = function() {
|
|
|
|
if (xhr.readyState == 4) {
|
|
|
|
if (xhr.status != 200) {
|
|
|
|
tile.style.display = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2018-03-25 09:08:35 +05:30
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
2018-08-15 05:45:33 +05:30
|
|
|
<% if page >= 2 %>
|
2018-07-20 21:49:49 +05:30
|
|
|
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>">Previous page</a>
|
2018-03-25 09:08:35 +05:30
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5"></div>
|
2018-03-25 09:44:35 +05:30
|
|
|
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
|
2018-08-15 05:45:33 +05:30
|
|
|
<% if (videos.size + notifications.size) == max_results %>
|
|
|
|
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page + 1 %>">Next page</a>
|
|
|
|
<% end %>
|
2018-03-25 09:08:35 +05:30
|
|
|
</div>
|
2018-08-17 21:34:38 +05:30
|
|
|
</div>
|