invidious-experimenting/src/invidious/views/subscription_manager.ecr

23 lines
702 B
Plaintext
Raw Normal View History

2018-07-06 06:18:55 +05:30
<% content_for "header" do %>
<title>Subscription manager - Invidious</title>
<% end %>
<h1><%= subscriptions.size %> subscriptions</h1>
<% subscriptions.each do |channel| %>
<h3 class="h-box">
<div class="pure-g">
<div class="pure-u-2-5">
<a href="/channel/<%= channel.id %>"><%= channel.author %></a>
</div>
<div class="pure-u-2-5"></div>
<div class="pure-u-1-5" style="text-align: right;">
<a href="/subscription_ajax?action_remove_subscriptions=1&c=<%= channel.id %>">unsubscribe</a>
2018-07-06 06:18:55 +05:30
</div>
</div>
</h3>
<% if subscriptions[-1].author != channel.author %>
<hr style="margin-left:1em; margin-right:1em;">
<% end %>
2018-07-06 06:18:55 +05:30
<% end %>