2018-07-06 09:48:55 +09:00
|
|
|
<% content_for "header" do %>
|
2018-12-21 06:32:09 +09:00
|
|
|
<title><%= translate(locale, "Subscription manager") %> - Invidious</title>
|
2018-07-06 09:48:55 +09:00
|
|
|
<% end %>
|
|
|
|
|
2018-07-31 02:34:57 +09:00
|
|
|
<div class="pure-g h-box">
|
2018-12-21 02:05:54 +09:00
|
|
|
<div class="pure-u-1-3">
|
2019-03-07 00:54:56 +09:00
|
|
|
<h3>
|
2019-05-02 10:03:39 +09:00
|
|
|
<a href="/feed/subscriptions">
|
|
|
|
<%= translate(locale, "`x` subscriptions", %(<span id="count">#{subscriptions.size}</span>)) %>
|
|
|
|
</a>
|
2019-03-07 00:54:56 +09:00
|
|
|
</h3>
|
2018-07-31 02:34:57 +09:00
|
|
|
</div>
|
2019-04-19 06:23:50 +09:00
|
|
|
<div class="pure-u-1-3" style="text-align:center">
|
2018-12-21 02:05:54 +09:00
|
|
|
<h3>
|
2019-05-02 10:03:39 +09:00
|
|
|
<a href="/feed/history">
|
|
|
|
<%= translate(locale, "Watch history") %>
|
|
|
|
</a>
|
2018-12-21 02:05:54 +09:00
|
|
|
</h3>
|
|
|
|
</div>
|
2019-04-19 06:23:50 +09:00
|
|
|
<div class="pure-u-1-3" style="text-align:right">
|
2018-07-31 02:34:57 +09:00
|
|
|
<h3>
|
2019-09-25 02:31:33 +09:00
|
|
|
<a href="/data_control?referer=<%= URI.encode_www_form(referer) %>">
|
2019-05-02 10:03:39 +09:00
|
|
|
<%= translate(locale, "Import/export") %>
|
|
|
|
</a>
|
2018-07-31 02:34:57 +09:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-06 09:48:55 +09:00
|
|
|
|
|
|
|
<% subscriptions.each do |channel| %>
|
2019-05-02 10:03:39 +09:00
|
|
|
<div class="h-box">
|
|
|
|
<div class="pure-g<% if channel.deleted %> deleted <% end %>">
|
|
|
|
<div class="pure-u-2-5">
|
|
|
|
<h3 style="padding-left:0.5em">
|
|
|
|
<a href="/channel/<%= channel.id %>"><%= channel.author %></a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-2-5"></div>
|
|
|
|
<div class="pure-u-1-5" style="text-align:right">
|
|
|
|
<h3 style="padding-right:0.5em">
|
2020-03-16 06:46:08 +09:00
|
|
|
<form data-onsubmit="return_false" action="/subscription_ajax?action_remove_subscriptions=1&c=<%= channel.id %>&referer=<%= env.get("current_page") %>" method="post">
|
2019-09-25 02:31:33 +09:00
|
|
|
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(env.get?("csrf_token").try &.as(String) || "") %>">
|
2020-03-16 06:46:08 +09:00
|
|
|
<a data-onclick="remove_subscription" data-ucid="<%= channel.id %>" href="#">
|
2019-05-02 10:03:39 +09:00
|
|
|
<input style="all:unset" type="submit" value="<%= translate(locale, "unsubscribe") %>">
|
|
|
|
</a>
|
|
|
|
</form>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2018-07-06 09:48:55 +09:00
|
|
|
</div>
|
2018-07-17 04:30:15 +09:00
|
|
|
|
2019-05-02 10:03:39 +09:00
|
|
|
<% if subscriptions[-1].author != channel.author %>
|
|
|
|
<hr>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2018-08-18 01:04:38 +09:00
|
|
|
<% end %>
|