mastodon/app/views/admin/accounts/show.html.haml

77 lines
2.5 KiB
Plaintext

- content_for :page_title do
= @account.pretty_acct
- if @account.instance_actor?
.flash-message.notice
%strong= t('accounts.instance_actor_flash')
= render 'application/card', account: @account
- if @account.fields? || @account.note?
.admin-account-bio
- if @account.fields?
%div
.account__header__fields
= render partial: 'field', collection: @account.fields, locals: { account: @account }
- if @account.note?
%div
.account__header__content.emojify
= prerender_custom_emojis(account_bio_format(@account), @account.emojis)
= render 'admin/accounts/counters', account: @account
- if @account.local? && @account.user.nil?
= 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)
- else
.table-wrapper
%table.table.inline-table
%tbody
- if @account.local?
= render 'admin/accounts/local_account', account: @account
- else
= render 'admin/accounts/remote_account', account: @account, domain_block: @domain_block
= render 'admin/accounts/buttons', account: @account, deletion_request: @deletion_request
%hr.spacer/
- unless @warnings.empty?
%h3= t 'admin.accounts.previous_strikes'
%p= t('admin.accounts.previous_strikes_description_html', count: @account.previous_strikes_count)
.account-strikes
= render @warnings
%hr.spacer/
%h3= t 'admin.reports.notes.title'
%p= t 'admin.reports.notes_description_html'
.report-notes
= render partial: 'admin/report_notes/report_note', collection: @moderation_notes
= 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
.field-group
= form.input :content, input_html: { placeholder: t('admin.reports.notes.placeholder'), maxlength: AccountModerationNote::CONTENT_SIZE_LIMIT, rows: 6, autofocus: @account_moderation_note.errors.any? }
.actions
= form.button :button, t('admin.account_moderation_notes.create'), type: :submit
%hr.spacer/
- if @account.user&.invite_request&.text.present?
.speech-bubble
.speech-bubble__bubble
= @account.user&.invite_request&.text
.speech-bubble__owner
= admin_account_link_to @account
= t('admin.accounts.invite_request_text')