show.html.haml 744 B

123456789101112131415161718192021222324
  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. - elsif current_account.requested?(@resource)
  12. .flash-message
  13. %strong
  14. = t('authorize_follow.already_requested')
  15. = render 'post_follow_actions'
  16. - else
  17. = form_tag authorize_interaction_path, method: :post, class: 'simple_form' do
  18. = hidden_field_tag :action, :follow
  19. = hidden_field_tag :acct, @resource.acct
  20. = button_tag t('authorize_follow.follow'), type: :submit