about summary refs log tree commit diff
path: root/app/views/remote_follow
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 /app/views/remote_follow
parent91c542645574aaa0173e05a72e1c2ee562655469 (diff)
Adding remote follow button
Diffstat (limited to 'app/views/remote_follow')
-rw-r--r--app/views/remote_follow/new.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/remote_follow/new.html.haml b/app/views/remote_follow/new.html.haml
new file mode 100644
index 000000000..e88ccccce
--- /dev/null
+++ b/app/views/remote_follow/new.html.haml
@@ -0,0 +1,13 @@
+.form-container
+  .follow-prompt
+    %h2= t('remote_follow.prompt')
+
+    = render partial: 'authorize_follow/card', locals: { account: @account }
+
+  = simple_form_for @remote_follow, as: :remote_follow, url: account_remote_follow_path(@account) do |f|
+    = render 'shared/error_messages', object: @remote_follow
+
+    = f.input :acct, placeholder: t('remote_follow.acct')
+
+    .actions
+      = f.button :button, t('remote_follow.proceed'), type: :submit