invidious-mod/src/invidious/views/user/subscription_manager.ecr

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

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 %>
<div class="pure-g h-box">
<div class="pure-u-1-3">
<h3>
2019-05-02 10:03:39 +09:00
<a href="/feed/subscriptions">
<%= translate_count(locale, "generic_subscriptions_count", subscriptions.size, NumberFormatting::HtmlSpan) %>
2019-05-02 10:03:39 +09:00
</a>
</h3>
</div>
<div class="pure-u-1-3">
<h3 style="text-align:center">
2019-05-02 10:03:39 +09:00
<a href="/feed/history">
<%= translate(locale, "Watch history") %>
</a>
</h3>
</div>
<div class="pure-u-1-3">
<h3 style="text-align:right">
<a href="/data_control?referer=<%= URI.encode_www_form(referer) %>">
2019-05-02 10:03:39 +09:00
<%= translate(locale, "Import/export") %>
</a>
</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 %>"><%= HTML.escape(channel.author) %></a>
2019-05-02 10:03:39 +09:00
</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">
<form data-onsubmit="return_false" action="/subscription_ajax?action_remove_subscriptions=1&c=<%= channel.id %>&referer=<%= env.get("current_page") %>" method="post">
<input type="hidden" name="csrf_token" value="<%= HTML.escape(env.get?("csrf_token").try &.as(String) || "") %>">
<input style="all:unset" type="submit" data-onclick="remove_subscription" data-ucid="<%= channel.id %>" value="<%= translate(locale, "unsubscribe") %>">
2019-05-02 10:03:39 +09:00
</form>
</h3>
</div>
2018-07-06 09:48:55 +09:00
</div>
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 %>