user: Add menu to 'data_control.ecr'

This commit is contained in:
Samantaz Fox 2022-02-24 04:38:29 +01:00
parent 273cee8f9a
commit 3cc70db82b
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -1,8 +1,16 @@
<% content_for "header" do %>
<title><%= translate(locale, "Import and Export Data") %> - Invidious</title>
<link rel="stylesheet" href="/css/user.css?v=<%= ASSET_COMMIT %>">
<% end %>
<div class="h-box">
<div class="h-box pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<%= Invidious::Frontend::UserMenu.make_menu(env, :import_export) %>
</div>
<div class="pure-u-1 pure-u-md-4-5">
<div class="user-tab">
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= URI.encode_www_form(referer) %>" method="post">
<fieldset>
<legend><%= translate(locale, "Import") %></legend>
@ -55,4 +63,8 @@
</div>
</fieldset>
</form>
</div>
</div>
</div>