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

59 lines
2.7 KiB
Plaintext
Raw Normal View History

<% content_for "header" do %>
2018-12-21 03:02:09 +05:30
<title><%= translate(locale, "Import and Export Data") %> - Invidious</title>
<% end %>
<div class="h-box">
2019-05-03 22:45:21 +05:30
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= URI.escape(referer) %>" method="post">
<fieldset>
2018-12-21 03:02:09 +05:30
<legend><%= translate(locale, "Import") %></legend>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<label for="import_youtube"><%= translate(locale, "Import Invidious data") %></label>
<input type="file" id="import_invidious" name="import_invidious">
</div>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<label for="import_youtube">
<a rel="noopener" target="_blank" href="https://support.google.com/youtube/answer/6224202?hl=en">
<%= translate(locale, "Import YouTube subscriptions") %>
</a>
</label>
<input type="file" id="import_youtube" name="import_youtube">
</div>
<div class="pure-control-group">
2018-12-21 21:20:01 +05:30
<label for="import_freetube"><%= translate(locale, "Import FreeTube subscriptions (.db)") %></label>
<input type="file" id="import_freetube" name="import_freetube">
</div>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<label for="import_newpipe_subscriptions"><%= translate(locale, "Import NewPipe subscriptions (.json)") %></label>
<input type="file" id="import_newpipe_subscriptions" name="import_newpipe_subscriptions">
</div>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<label for="import_newpipe"><%= translate(locale, "Import NewPipe data (.zip)") %></label>
<input type="file" id="import_newpipe" name="import_newpipe">
</div>
<div class="pure-controls">
2018-12-21 03:02:09 +05:30
<button type="submit" class="pure-button pure-button-primary"><%= translate(locale, "Import") %></button>
</div>
2018-12-21 03:02:09 +05:30
<legend><%= translate(locale, "Export") %></legend>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<a href="/subscription_manager?action_takeout=1"><%= translate(locale, "Export subscriptions as OPML") %></a>
</div>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<a href="/subscription_manager?action_takeout=1&format=newpipe"><%= translate(locale, "Export subscriptions as OPML (for NewPipe & FreeTube)") %></a>
</div>
<div class="pure-control-group">
2018-12-21 03:02:09 +05:30
<a href="/subscription_manager?action_takeout=1&format=json"><%= translate(locale, "Export data as JSON") %></a>
</div>
</fieldset>
</form>
2018-08-17 21:34:38 +05:30
</div>