invidious-experimenting/src/views/subscriptions.ecr

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-03-25 09:08:35 +05:30
<% content_for "header" do %>
<title>Subscriptions - Invidious</title>
<% end %>
<% if !notifications.empty? %>
2018-06-02 03:56:00 +05:30
<% notifications.each_slice(4) do |slice| %>
<div class="pure-g">
<% slice.each do |video| %>
<%= rendered "components/subscription_video" %>
<% end %>
</div>
<% end %>
2018-06-02 03:56:00 +05:30
<hr style="margin-left:1em; margin-right:1em;">
<% end %>
2018-03-25 09:08:35 +05:30
<% videos.each_slice(4) do |slice| %>
2018-06-02 03:56:00 +05:30
<div class="pure-g">
<% slice.each do |video| %>
<%= rendered "components/subscription_video" %>
<% end %>
2018-03-25 09:08:35 +05:30
</div>
<% end %>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<% if page > 2 %>
2018-03-25 09:08:35 +05:30
<a href="/feed/subscriptions?maxResults=<%= max_results %>&page=<%= page - 1 %>">Previous page</a>
<% else %>
<a href="/feed/subscriptions?maxResults=<%= max_results %>">Previous page</a>
<% 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-03-25 09:08:35 +05:30
<a href="/feed/subscriptions?maxResults=<%= max_results %>&page=<%= page + 1 %>">Next page</a>
</div>
</div>