diff options
author | STJrInuyasha <MattWCSTRFAN@gmail.com> | 2017-07-10 09:05:06 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-10 18:05:06 +0200 |
commit | 7a889a8e125a03e109b225cd83b0abcbdc76d95b (patch) | |
tree | 52aeb321afcb04bbeb6fa0c61a5ae8eec700d1cf /app/views | |
parent | d081d4a4226ba317a1b653aa6eef57543cbe4430 (diff) |
Remote following success page (#4129)
* Added a success page to remote following Includes follow-through links to web (the old redirect target) and back to the remote user's profile * Use Account.new in spec instead of a fake with only id (fixes spec) * Fabricate(:account) over Account.new * Remove self from the success text (and all HTML with it)
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/authorize_follows/success.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/authorize_follows/success.html.haml b/app/views/authorize_follows/success.html.haml new file mode 100644 index 000000000..f0b495689 --- /dev/null +++ b/app/views/authorize_follows/success.html.haml @@ -0,0 +1,16 @@ +- content_for :page_title do + = t('authorize_follow.title', acct: @account.acct) + +.form-container + .follow-prompt + - if @account.locked? + %h2= t('authorize_follow.follow_request') + - else + %h2= t('authorize_follow.following') + + = render 'card', account: @account + + .post-follow-actions + %div= link_to t('authorize_follow.post_follow.web'), web_url("accounts/#{@account.id}"), class: 'button button--block' + %div= link_to t('authorize_follow.post_follow.return'), @account.url, class: 'button button--block' + %div= t('authorize_follow.post_follow.close') |