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

22 lines
684 B
Text
Raw Normal View History

2018-01-15 03:16:09 +00:00
<% content_for "header" do %>
<title>Invidious</title>
2018-02-05 23:56:40 +00:00
<% end %>
2018-02-08 04:04:47 +00:00
<% top_videos.each_slice(4) do |slice| %>
2018-02-05 23:56:40 +00:00
<div class="pure-g">
<% slice.each do |video| %>
<div class="pure-u-1 pure-u-md-1-4">
2018-04-17 20:53:12 +00:00
<div class="h-box">
<a style="width:100%;" href="/watch?v=<%= video.id %>">
2018-04-06 01:54:56 +00:00
<img style="width:100%;" src="https://i.ytimg.com/vi/<%= video.id %>/mqdefault.jpg"/>
2018-02-27 02:59:18 +00:00
<p><%= video.title %></p>
2018-02-05 23:56:40 +00:00
</a>
<p>
<b><a style="width:100%;" href="https://youtube.com/channel/<%= video.info["ucid"] %>"><%= video.info["author"] %></a></b>
</p>
2018-02-05 23:56:40 +00:00
</div>
</div>
<% end %>
</div>
<% end %>