2017-01-28 13:56:10 +11:00
|
|
|
- content_for :page_title do
|
2022-03-22 20:07:11 +11:00
|
|
|
= @account.pretty_acct
|
2017-01-28 13:56:10 +11:00
|
|
|
|
2020-12-16 03:23:58 +11:00
|
|
|
- if @account.instance_actor?
|
|
|
|
.flash-message.notice
|
|
|
|
%strong= t('accounts.instance_actor_flash')
|
|
|
|
|
2018-12-28 13:38:41 +11:00
|
|
|
= render 'application/card', account: @account
|
|
|
|
|
2019-09-09 22:15:52 +10:00
|
|
|
- account = @account
|
|
|
|
- fields = account.fields
|
2021-11-26 15:58:18 +11:00
|
|
|
- unless fields.empty? && account.note.blank?
|
2019-09-09 22:15:52 +10:00
|
|
|
.admin-account-bio
|
2021-11-26 15:58:18 +11:00
|
|
|
- unless fields.empty?
|
2019-09-09 22:15:52 +10:00
|
|
|
%div
|
|
|
|
.account__header__fields
|
|
|
|
- fields.each do |field|
|
|
|
|
%dl
|
2022-03-26 12:53:34 +11:00
|
|
|
%dt.emojify{ title: field.name }= prerender_custom_emojis(h(field.name), account.emojis)
|
2019-09-09 22:15:52 +10:00
|
|
|
%dd{ title: field.value, class: custom_field_classes(field) }
|
|
|
|
- if field.verified?
|
|
|
|
%span.verified__mark{ title: t('accounts.link_verified_on', date: l(field.verified_at)) }
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'check'
|
2022-03-28 10:17:17 +11:00
|
|
|
= prerender_custom_emojis(account_field_value_format(field, with_rel_me: false), account.emojis)
|
2019-09-09 22:15:52 +10:00
|
|
|
|
2020-02-18 02:38:59 +11:00
|
|
|
- if account.note.present?
|
|
|
|
%div
|
2022-03-28 10:17:17 +11:00
|
|
|
.account__header__content.emojify= prerender_custom_emojis(account_bio_format(account), account.emojis)
|
2019-09-09 22:15:52 +10:00
|
|
|
|
2023-10-17 03:02:15 +11:00
|
|
|
= render 'admin/accounts/counters', account: @account
|
2018-12-28 13:38:41 +11:00
|
|
|
|
2021-12-18 09:02:14 +11:00
|
|
|
- if @account.local? && @account.user.nil?
|
2024-05-21 18:56:08 +10:00
|
|
|
= link_to t('admin.accounts.unblock_email'), unblock_email_admin_account_path(@account.id), method: :post, class: 'button' if can?(:unblock_email, @account) && CanonicalEmailBlock.exists?(reference_account_id: @account.id)
|
2021-12-18 09:02:14 +11:00
|
|
|
- else
|
2017-09-13 07:06:10 +10:00
|
|
|
.table-wrapper
|
2018-05-06 07:06:29 +10:00
|
|
|
%table.table.inline-table
|
2017-09-13 07:06:10 +10:00
|
|
|
%tbody
|
2018-12-28 13:38:41 +11:00
|
|
|
- if @account.local?
|
2023-10-17 03:02:15 +11:00
|
|
|
= render 'admin/accounts/local_account', account: @account
|
2018-12-28 13:38:41 +11:00
|
|
|
- else
|
2023-10-17 03:02:15 +11:00
|
|
|
= render 'admin/accounts/remote_account', account: @account, domain_block: @domain_block
|
2020-09-15 22:37:58 +10:00
|
|
|
|
2023-10-17 03:02:15 +11:00
|
|
|
= render 'admin/accounts/buttons', account: @account, deletion_request: @deletion_request
|
2020-04-29 03:39:16 +10:00
|
|
|
|
2018-12-28 13:38:41 +11:00
|
|
|
%hr.spacer/
|
2018-05-06 07:06:29 +10:00
|
|
|
|
2018-12-28 13:38:41 +11:00
|
|
|
- unless @warnings.empty?
|
2022-02-15 07:27:53 +11:00
|
|
|
|
|
|
|
%h3= t 'admin.accounts.previous_strikes'
|
|
|
|
|
|
|
|
%p= t('admin.accounts.previous_strikes_description_html', count: @account.previous_strikes_count)
|
|
|
|
|
|
|
|
.account-strikes
|
|
|
|
= render @warnings
|
Add moderation warnings (#9519)
* Add moderation warnings
Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.
Additionally, there are warning presets you can configure to save
time when performing the above.
* Use Account#local_username_and_domain
2018-12-23 06:02:09 +11:00
|
|
|
|
2018-12-28 13:38:41 +11:00
|
|
|
%hr.spacer/
|
Add moderation warnings (#9519)
* Add moderation warnings
Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.
Additionally, there are warning presets you can configure to save
time when performing the above.
* Use Account#local_username_and_domain
2018-12-23 06:02:09 +11:00
|
|
|
|
2022-02-15 07:27:53 +11:00
|
|
|
%h3= t 'admin.reports.notes.title'
|
2017-10-08 05:26:43 +11:00
|
|
|
|
2022-02-15 07:27:53 +11:00
|
|
|
%p= t 'admin.reports.notes_description_html'
|
2017-10-08 05:26:43 +11:00
|
|
|
|
2022-02-15 07:27:53 +11:00
|
|
|
.report-notes
|
|
|
|
= render partial: 'admin/report_notes/report_note', collection: @moderation_notes
|
|
|
|
|
2024-05-15 23:38:36 +10:00
|
|
|
= simple_form_for @account_moderation_note, url: admin_account_moderation_notes_path do |form|
|
|
|
|
= form.hidden_field :target_account_id
|
|
|
|
|
|
|
|
= render 'shared/error_messages', object: @account_moderation_note
|
2017-10-08 05:26:43 +11:00
|
|
|
|
2022-02-15 07:27:53 +11:00
|
|
|
.field-group
|
2024-05-15 23:38:36 +10:00
|
|
|
= form.input :content, input_html: { placeholder: t('admin.reports.notes.placeholder'), maxlength: AccountModerationNote::CONTENT_SIZE_LIMIT, rows: 6, autofocus: @account_moderation_note.errors.any? }
|
2022-02-15 07:27:53 +11:00
|
|
|
|
2018-12-28 13:38:41 +11:00
|
|
|
.actions
|
2024-05-15 23:38:36 +10:00
|
|
|
= form.button :button, t('admin.account_moderation_notes.create'), type: :submit
|
2020-12-15 16:28:14 +11:00
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
|
2023-10-25 23:38:01 +11:00
|
|
|
- if @account.user&.invite_request&.text.present?
|
2023-03-15 14:15:36 +11:00
|
|
|
.speech-bubble
|
|
|
|
.speech-bubble__bubble
|
2020-12-15 16:28:14 +11:00
|
|
|
= @account.user&.invite_request&.text
|
2023-03-15 14:15:36 +11:00
|
|
|
.speech-bubble__owner
|
2020-12-15 16:28:14 +11:00
|
|
|
= admin_account_link_to @account
|
|
|
|
= t('admin.accounts.invite_request_text')
|