mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-14 19:05:27 +00:00
43f56f1291
Fix deletion of unconfirmed account not freeing up the username Add prefill of logged-in user's email in the reconfirmation form
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
- content_for :page_title do
|
|
= t('settings.delete')
|
|
|
|
= simple_form_for @confirmation, url: settings_delete_path, method: :delete do |f|
|
|
%p.hint= t('deletes.warning.before')
|
|
|
|
%ul.hint
|
|
- if current_user.confirmed? && current_user.approved?
|
|
%li.warning-hint= t('deletes.warning.irreversible')
|
|
%li.warning-hint= t('deletes.warning.username_unavailable')
|
|
%li.warning-hint= t('deletes.warning.data_removal')
|
|
%li.warning-hint= t('deletes.warning.caches')
|
|
- else
|
|
%li.positive-hint= t('deletes.warning.email_change_html', path: edit_user_registration_path)
|
|
%li.positive-hint= t('deletes.warning.email_reconfirmation_html', path: new_user_confirmation_path)
|
|
%li.positive-hint= t('deletes.warning.email_contact_html', email: Setting.site_contact_email)
|
|
%li.positive-hint= t('deletes.warning.username_available')
|
|
|
|
%p.hint= t('deletes.warning.more_details_html', terms_path: terms_path)
|
|
|
|
%hr.spacer/
|
|
|
|
= f.input :password, wrapper: :with_block_label, input_html: { :autocomplete => 'off' }, hint: t('deletes.confirm_password')
|
|
|
|
.actions
|
|
= f.button :button, t('deletes.proceed'), type: :submit, class: 'negative'
|