about summary refs log tree commit diff
path: root/app/views/accounts
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/accounts
parent91c542645574aaa0173e05a72e1c2ee562655469 (diff)
Adding remote follow button
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/_header.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/accounts/_header.html.haml b/app/views/accounts/_header.html.haml
index 01e639205..1c6b5f0f6 100644
--- a/app/views/accounts/_header.html.haml
+++ b/app/views/accounts/_header.html.haml
@@ -5,8 +5,11 @@
         = link_to t('accounts.unfollow'), unfollow_account_path(@account), data: { method: :post }, class: 'button'
       - else
         = link_to t('accounts.follow'), follow_account_path(@account), data: { method: :post }, class: 'button'
-
-  .avatar= image_tag @account.avatar.url( :original)
+  - else
+    .controls
+      .remote-follow
+        = link_to t('accounts.remote_follow'), account_remote_follow_path(@account), class: 'button'
+  .avatar= image_tag @account.avatar.url(:original)
   %h1.name
     = display_name(@account)
     %small