about summary refs log tree commit diff
path: root/app/views/settings/migrations
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-11-27 22:47:06 +0100
committerGitHub <noreply@github.com>2017-11-27 22:47:06 +0100
commit706e534455e2137c324c0ebb30435e7630ab7c1f (patch)
tree9875215f85439929a41d70853a674a2c33096f93 /app/views/settings/migrations
parentff78c1177a180f1b9aec8464734ac3aa1c888874 (diff)
Add UI for setting up account migration (#5832)
Diffstat (limited to 'app/views/settings/migrations')
-rw-r--r--app/views/settings/migrations/show.html.haml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/settings/migrations/show.html.haml b/app/views/settings/migrations/show.html.haml
new file mode 100644
index 000000000..b7c34761f
--- /dev/null
+++ b/app/views/settings/migrations/show.html.haml
@@ -0,0 +1,17 @@
+- content_for :page_title do
+  = t('settings.migrate')
+
+= simple_form_for @migration, as: :migration, url: settings_migration_path, html: { method: :put } do |f|
+  - if @migration.account
+    %p.hint= t('migrations.currently_redirecting')
+
+    .fields-group
+      = render partial: 'authorize_follows/card', locals: { account: @migration.account }
+
+  = render 'shared/error_messages', object: @migration
+
+  .fields-group
+    = f.input :acct, placeholder: t('migrations.acct')
+
+  .actions
+    = f.button :button, t('migrations.proceed'), type: :submit, class: 'negative'