mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
32 lines
1.3 KiB
Text
32 lines
1.3 KiB
Text
|
- content_for :page_title do
|
||
|
= t('identity_proofs.authorize_connection_prompt')
|
||
|
|
||
|
.form-container
|
||
|
.oauth-prompt
|
||
|
%h2= t('identity_proofs.authorize_connection_prompt')
|
||
|
|
||
|
= simple_form_for @proof, url: settings_identity_proofs_url, html: { method: :post } do |f|
|
||
|
= f.input :provider, as: :hidden
|
||
|
= f.input :provider_username, as: :hidden
|
||
|
= f.input :token, as: :hidden
|
||
|
|
||
|
= hidden_field_tag :user_agent, params[:user_agent]
|
||
|
|
||
|
.connection-prompt
|
||
|
.connection-prompt__row.connection-prompt__connection
|
||
|
.connection-prompt__column
|
||
|
= image_tag current_account.avatar.url(:original), size: 96, class: 'account__avatar'
|
||
|
|
||
|
%p= t('identity_proofs.i_am_html', username: content_tag(:strong,current_account.username), service: site_hostname)
|
||
|
|
||
|
.connection-prompt__column.connection-prompt__column-sep
|
||
|
= fa_icon 'link'
|
||
|
|
||
|
.connection-prompt__column
|
||
|
= image_tag @proof.badge.avatar_url, size: 96, class: 'account__avatar'
|
||
|
|
||
|
%p= t('identity_proofs.i_am_html', username: content_tag(:strong, @proof.provider_username), service: @proof.provider.capitalize)
|
||
|
|
||
|
= f.button :button, t('identity_proofs.authorize'), type: :submit
|
||
|
= link_to t('simple_form.no'), settings_identity_proofs_url, class: 'button negative'
|