2017-01-27 18:56:10 -08:00
|
|
|
- content_for :page_title do
|
|
|
|
= @account.acct
|
|
|
|
|
2016-12-04 09:10:40 -08:00
|
|
|
%table.table
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%th Username
|
|
|
|
%td= @account.username
|
|
|
|
%tr
|
|
|
|
%th Domain
|
|
|
|
%td= @account.domain
|
|
|
|
%tr
|
|
|
|
%th Display name
|
|
|
|
%td= @account.display_name
|
|
|
|
|
|
|
|
- if @account.local?
|
|
|
|
%tr
|
|
|
|
%th E-mail
|
|
|
|
%td= @account.user.email
|
|
|
|
%tr
|
2017-02-14 15:22:58 -08:00
|
|
|
%th Most recent IP
|
2016-12-04 09:10:40 -08:00
|
|
|
%td= @account.user.current_sign_in_ip
|
2017-02-14 15:22:58 -08:00
|
|
|
%tr
|
|
|
|
%th Most recent activity
|
2017-02-15 17:28:10 -08:00
|
|
|
%td
|
|
|
|
- if @account.user.current_sign_in_at
|
|
|
|
= l @account.user.current_sign_in_at
|
|
|
|
- else
|
|
|
|
Never
|
2016-12-04 09:10:40 -08:00
|
|
|
- else
|
|
|
|
%tr
|
|
|
|
%th Profile URL
|
|
|
|
%td= link_to @account.url
|
|
|
|
%tr
|
|
|
|
%th Feed URL
|
|
|
|
%td= link_to @account.remote_url
|
2017-02-14 15:22:58 -08:00
|
|
|
%tr
|
|
|
|
%th PuSH subscription expires
|
|
|
|
%td
|
|
|
|
- if @account.subscribed?
|
|
|
|
= l @account.subscription_expires_at
|
|
|
|
- else
|
|
|
|
Not subscribed
|
|
|
|
%tr
|
|
|
|
%th Salmon URL
|
|
|
|
%td= link_to @account.salmon_url
|
2016-12-04 09:10:40 -08:00
|
|
|
|
2017-02-14 15:22:58 -08:00
|
|
|
%tr
|
|
|
|
%th Follows
|
2017-03-31 05:02:07 -07:00
|
|
|
%td= @account.following_count
|
2017-02-14 15:22:58 -08:00
|
|
|
%tr
|
|
|
|
%th Followers
|
2017-03-31 05:02:07 -07:00
|
|
|
%td= @account.followers_count
|
2017-02-14 15:22:58 -08:00
|
|
|
%tr
|
|
|
|
%th Statuses
|
2017-03-31 05:02:07 -07:00
|
|
|
%td= @account.statuses_count
|
2017-02-14 15:22:58 -08:00
|
|
|
%tr
|
|
|
|
%th Media attachments
|
|
|
|
%td
|
|
|
|
= @account.media_attachments.count
|
|
|
|
= surround '(', ')' do
|
|
|
|
= number_to_human_size @account.media_attachments.sum('file_file_size')
|
2016-12-04 09:10:40 -08:00
|
|
|
|
2017-02-14 15:22:58 -08:00
|
|
|
- if @account.silenced?
|
2017-04-13 04:04:23 -07:00
|
|
|
= link_to 'Undo silence', admin_account_silence_path(@account.id), method: :delete, class: 'button'
|
2017-02-14 15:22:58 -08:00
|
|
|
- else
|
2017-04-13 04:04:23 -07:00
|
|
|
= link_to 'Silence', admin_account_silence_path(@account.id), method: :post, class: 'button'
|
2016-12-06 09:22:59 -08:00
|
|
|
|
2017-02-14 15:22:58 -08:00
|
|
|
- if @account.suspended?
|
2017-04-13 04:04:23 -07:00
|
|
|
= link_to 'Undo suspension', admin_account_suspension_path(@account.id), method: :delete, class: 'button'
|
2017-02-14 15:22:58 -08:00
|
|
|
- else
|
2017-04-13 04:04:23 -07:00
|
|
|
= link_to 'Perform full suspension', admin_account_suspension_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button'
|