invidious-mod/src/invidious/views/playlist.ecr

53 行
1.4 KiB
Plaintext
Raw 通常表示 履歴

2018-08-16 00:22:36 +09:00
<% content_for "header" do %>
<title><%= playlist.title %> - Invidious</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/playlist/<%= plid %>" />
2018-08-16 00:22:36 +09:00
<% end %>
<div class="pure-g h-box">
<div class="pure-u-2-3">
<h3><%= playlist.title %></h3>
</div>
2018-09-18 08:13:24 +09:00
<div class="pure-u-1-3" style="text-align:right;">
<h3>
<a href="/feed/playlist/<%= plid %>"><i class="icon ion-logo-rss"></i></a>
</h3>
</div>
2018-08-16 00:22:36 +09:00
</div>
<div class="pure-g h-box">
<div class="pure-u-1 pure-u-md-1-4">
<a href="/channel/<%= playlist.ucid %>">
<b><%= playlist.author %></b>
</a>
</div>
</div>
<div class="h-box">
<p><%= playlist.description_html %></p>
2018-08-16 00:22:36 +09:00
</div>
<div class="pure-g">
2018-11-20 09:43:06 +09:00
<% videos.each_slice(4) do |slice| %>
<% slice.each do |item| %>
<%= rendered "components/item" %>
2018-08-16 00:22:36 +09:00
<% end %>
<% end %>
</div>
2018-08-16 00:22:36 +09:00
<div class="pure-g h-box">
<div class="pure-u-1 pure-u-md-1-5">
<% if page >= 2 %>
2018-12-21 06:32:09 +09:00
<a href="/playlist?list=<%= playlist.id %>&page=<%= page - 1 %>">
<%= translate(locale, "Previous page") %>
</a>
2018-08-16 00:22:36 +09: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">
<% if videos.size == 100 %>
2018-12-21 06:32:09 +09:00
<a href="/playlist?list=<%= playlist.id %>&page=<%= page + 1 %>">
<%= translate(locale, "Next page") %>
</a>
2018-08-16 00:22:36 +09:00
<% end %>
</div>
2018-08-18 01:04:38 +09:00
</div>