diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-29 16:54:54 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-29 16:54:54 +0100 |
commit | d7dc84439c60069a0cb9eeca81dc61c297a8667b (patch) | |
tree | 167ee6db4fdc7008e2e517a0e983edb9721f4a7a /app/views/authorize_follow | |
parent | 8b94d283fb45f054ee5193b0cec8586461d636b1 (diff) |
Add ability to use remote follow function on other sites
Diffstat (limited to 'app/views/authorize_follow')
-rw-r--r-- | app/views/authorize_follow/error.html.haml | 3 | ||||
-rw-r--r-- | app/views/authorize_follow/new.html.haml | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/app/views/authorize_follow/error.html.haml b/app/views/authorize_follow/error.html.haml new file mode 100644 index 000000000..88d33b68d --- /dev/null +++ b/app/views/authorize_follow/error.html.haml @@ -0,0 +1,3 @@ +.form-container + .flash-message#error_explanation + = t('authorize_follow.error') diff --git a/app/views/authorize_follow/new.html.haml b/app/views/authorize_follow/new.html.haml new file mode 100644 index 000000000..7368b834a --- /dev/null +++ b/app/views/authorize_follow/new.html.haml @@ -0,0 +1,21 @@ +- content_for :page_title do + = t('authorize_follow.title', acct: @account.acct) + +.form-container + .follow-prompt + %h2= t('authorize_follow.prompt_html', self: current_account.username) + + .account-card + .detailed-status__display-name + %div + = image_tag @account.avatar.url(:original), alt: '', width: 48, height: 48, class: 'avatar' + + %span.display-name + %strong= display_name(@account) + %span= "@#{@account.acct}" + + .account__header__content= Formatter.instance.simplified_format(@account) + + = form_tag authorize_follow_path, method: :post, class: 'simple_form' do + = hidden_field_tag :acct, @account.acct + = button_tag t('authorize_follow.follow'), type: :submit |