2018-03-25 12:38:35 +09:00
|
|
|
<% content_for "header" do %>
|
|
|
|
<title>Subscriptions - Invidious</title>
|
|
|
|
<% end %>
|
|
|
|
|
2018-07-29 23:47:32 +09:00
|
|
|
<div class="pure-g h-box">
|
2018-07-25 09:34:49 +09:00
|
|
|
<div class="pure-u-2-3">
|
2018-07-21 01:19:49 +09:00
|
|
|
<h3>
|
|
|
|
<a href="/subscription_manager">Manage subscriptions</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2018-07-25 09:34:49 +09:00
|
|
|
<div class="pure-u-1-3" style="text-align:right;">
|
2018-07-21 01:19:49 +09:00
|
|
|
<h3>
|
2018-07-31 08:38:55 +09:00
|
|
|
<a href="/feed/private?token=<%= user.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
|
|
|
|
2018-08-06 08:03:38 +09:00
|
|
|
<div class="h-box">
|
|
|
|
<% if notifications.empty? %>
|
|
|
|
<center><%= notifications.size %> unseen notifications</center>
|
|
|
|
<% else %>
|
2018-06-02 07:26:00 +09:00
|
|
|
<% notifications.each_slice(4) do |slice| %>
|
|
|
|
<% slice.each do |video| %>
|
2018-08-05 13:07:38 +09:00
|
|
|
<%= rendered "components/video" %>
|
2018-06-02 07:26:00 +09:00
|
|
|
<% end %>
|
2018-05-08 11:57:47 +09:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2018-08-06 08:03:38 +09:00
|
|
|
<hr>
|
|
|
|
</div>
|
2018-05-08 11:57:47 +09:00
|
|
|
|
2018-03-25 12:38:35 +09:00
|
|
|
<% videos.each_slice(4) do |slice| %>
|
2018-06-02 07:26:00 +09:00
|
|
|
<div class="pure-g">
|
|
|
|
<% slice.each do |video| %>
|
2018-08-05 13:07:38 +09:00
|
|
|
<%= rendered "components/video" %>
|
2018-06-02 07:26:00 +09:00
|
|
|
<% end %>
|
2018-03-25 12:38:35 +09:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
2018-03-25 13:14:35 +09:00
|
|
|
<% if page > 2 %>
|
2018-07-21 01:19:49 +09:00
|
|
|
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>">Previous page</a>
|
2018-03-25 12:38:35 +09:00
|
|
|
<% else %>
|
2018-07-21 01:19:49 +09:00
|
|
|
<a href="/feed/subscriptions?max_results=<%= max_results %>">Previous page</a>
|
2018-03-25 12:38:35 +09:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5"></div>
|
2018-03-25 13:14:35 +09:00
|
|
|
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
|
2018-07-21 01:19:49 +09:00
|
|
|
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page + 1 %>">Next page</a>
|
2018-03-25 12:38:35 +09:00
|
|
|
</div>
|
|
|
|
</div>
|