about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-11-27 22:33:26 -0600
committerDavid Yip <yipdw@member.fsf.org>2017-11-27 22:33:26 -0600
commit7463d80ff442833a4ad299460f37c27be9b8cda1 (patch)
treeeb84f712515a4b5c59a36cbc0340781c6765a545 /app/views
parent8bad6bdd00254484e04570b7a631403c24e73939 (diff)
parent706e534455e2137c324c0ebb30435e7630ab7c1f (diff)
Merge remote-tracking branch 'tootsuite/master'
Diffstat (limited to 'app/views')
-rw-r--r--app/views/settings/migrations/show.html.haml17
-rw-r--r--app/views/settings/profiles/show.html.haml5
2 files changed, 22 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'
diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml
index 551a7ca49..be7bd0ba0 100644
--- a/app/views/settings/profiles/show.html.haml
+++ b/app/views/settings/profiles/show.html.haml
@@ -21,3 +21,8 @@
 
   .actions
     = f.button :button, t('generic.save_changes'), type: :submit
+
+%hr/
+
+%h6= t('auth.migrate_account')
+%p.muted-hint= t('auth.migrate_account_html', path: settings_migration_path)