about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-01 19:52:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-01 19:54:34 +0100
commit8f47f6a7ec4bdbf0a540efe3a3f9c6b493b2dc34 (patch)
treea5d6512339d4886a0261c194b3e138e48aa4cfe8 /config
parent91c542645574aaa0173e05a72e1c2ee562655469 (diff)
Adding remote follow button
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml6
-rw-r--r--config/routes.rb3
2 files changed, 9 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f57c72026..e166fc717 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -14,6 +14,7 @@ en:
     people_followed_by: People whom %{name} follows
     people_who_follow: People who follow %{name}
     posts: Posts
+    remote_follow: Remote follow
     unfollow: Unfollow
   application_mailer:
     signature: Mastodon notifications from %{instance}
@@ -71,6 +72,11 @@ en:
   pagination:
     next: Next
     prev: Prev
+  remote_follow:
+    acct: Enter your username@domain you want to follow from
+    missing_resource: Could not find the required redirect URL for your account
+    proceed: Proceed to follow
+    prompt: 'You are going to follow:'
   settings:
     edit_profile: Edit profile
     preferences: Preferences
diff --git a/config/routes.rb b/config/routes.rb
index 842fbe71e..18c239c48 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -31,6 +31,9 @@ Rails.application.routes.draw do
       end
     end
 
+    get :remote_follow,  to: 'remote_follow#new'
+    post :remote_follow, to: 'remote_follow#create'
+
     member do
       get :followers
       get :following