new.html.haml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. - content_for :page_title do
  2. = t('identity_proofs.authorize_connection_prompt')
  3. .form-container
  4. .oauth-prompt
  5. %h2= t('identity_proofs.authorize_connection_prompt')
  6. = simple_form_for @proof, url: settings_identity_proofs_url, html: { method: :post } do |f|
  7. = f.input :provider, as: :hidden
  8. = f.input :provider_username, as: :hidden
  9. = f.input :token, as: :hidden
  10. = hidden_field_tag :user_agent, params[:user_agent]
  11. .connection-prompt
  12. .connection-prompt__row.connection-prompt__connection
  13. .connection-prompt__column
  14. = image_tag current_account.avatar.url(:original), size: 96, class: 'account__avatar'
  15. %p= t('identity_proofs.i_am_html', username: content_tag(:strong,current_account.username), service: site_hostname)
  16. .connection-prompt__column.connection-prompt__column-sep
  17. = fa_icon 'link'
  18. .connection-prompt__column
  19. = image_tag @proof.badge.avatar_url, size: 96, class: 'account__avatar'
  20. %p= t('identity_proofs.i_am_html', username: content_tag(:strong, @proof.provider_username), service: @proof.provider.capitalize)
  21. .connection-prompt__post
  22. = f.input :post_status, label: t('identity_proofs.publicize_checkbox'), as: :boolean, wrapper: :with_label, :input_html => { checked: true }
  23. = f.input :status_text, as: :text, input_html: { value: t('identity_proofs.publicize_toot', username: @proof.provider_username, service: @proof.provider.capitalize, url: @proof.badge.proof_url), rows: 4 }
  24. = f.button :button, t('identity_proofs.authorize'), type: :submit
  25. = link_to t('simple_form.no'), settings_identity_proofs_url, class: 'button negative'