invidious-copy-2022-08-14/src/invidious/views/subscriptions.ecr

50 lines
1.6 KiB
Text
Raw Normal View History

2018-03-25 03:38:35 +00:00
<% content_for "header" do %>
<title>Subscriptions - Invidious</title>
<% end %>
2018-07-20 16:19:49 +00:00
<div class="pure-g">
<div class="pure-u-1 pure-u-md-3-5">
<h3>
<a href="/subscription_manager">Manage subscriptions</a>
</h3>
</div>
<div class="pure-u-1 pure-u-md-1-5"></div>
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
<h3>
<a href="/feed/private?token=<%= user.token %>"><i class="fas fa-rss-square"></i></a>
</h3>
</div>
</div>
2018-07-06 00:48:55 +00:00
<% if !notifications.empty? %>
2018-06-01 22:26:00 +00:00
<% notifications.each_slice(4) do |slice| %>
<div class="pure-g">
<% slice.each do |video| %>
<%= rendered "components/subscription_video" %>
<% end %>
</div>
<% end %>
2018-06-01 22:26:00 +00:00
<hr style="margin-left:1em; margin-right:1em;">
<% end %>
2018-03-25 03:38:35 +00:00
<% videos.each_slice(4) do |slice| %>
2018-06-01 22:26:00 +00:00
<div class="pure-g">
<% slice.each do |video| %>
<%= rendered "components/subscription_video" %>
<% end %>
2018-03-25 03:38:35 +00:00
</div>
<% end %>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<% if page > 2 %>
2018-07-20 16:19:49 +00:00
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>">Previous page</a>
2018-03-25 03:38:35 +00:00
<% else %>
2018-07-20 16:19:49 +00:00
<a href="/feed/subscriptions?max_results=<%= max_results %>">Previous page</a>
2018-03-25 03:38:35 +00:00
<% end %>
</div>
<div class="pure-u-1 pure-u-md-3-5"></div>
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
2018-07-20 16:19:49 +00:00
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page + 1 %>">Next page</a>
2018-03-25 03:38:35 +00:00
</div>
</div>