闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
577 B

  1. - content_for :page_title do
  2. = t('authorize_follow.title', acct: @resource.acct)
  3. .form-container
  4. .follow-prompt
  5. = render 'application/card', account: @resource
  6. - if current_account.following?(@resource)
  7. .flash-message
  8. %strong
  9. = t('authorize_follow.already_following')
  10. = render 'post_follow_actions'
  11. - else
  12. = form_tag authorize_interaction_path, method: :post, class: 'simple_form' do
  13. = hidden_field_tag :action, :follow
  14. = hidden_field_tag :acct, @resource.acct
  15. = button_tag t('authorize_follow.follow'), type: :submit