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

73 lines
1.9 KiB
Text
Raw Normal View History

- content_for :page_title do
= @account.acct
2016-12-05 02:10:40 +09: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-15 08:22:58 +09:00
%th Most recent IP
2016-12-05 02:10:40 +09:00
%td= @account.user.current_sign_in_ip
2017-02-15 08:22:58 +09:00
%tr
%th Most recent activity
%td
- if @account.user.current_sign_in_at
= l @account.user.current_sign_in_at
- else
Never
2016-12-05 02:10:40 +09:00
- else
%tr
%th Profile URL
%td= link_to @account.url
%tr
%th Feed URL
%td= link_to @account.remote_url
2017-02-15 08:22:58 +09: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-05 02:10:40 +09:00
2017-02-15 08:22:58 +09:00
%tr
%th Follows
%td= @account.following.count
%tr
%th Followers
%td= @account.followers.count
%tr
%th Statuses
%td= @account.statuses.count
%tr
%th Media attachments
%td
= @account.media_attachments.count
= surround '(', ')' do
= number_to_human_size @account.media_attachments.sum('file_file_size')
2016-12-05 02:10:40 +09:00
2017-02-15 08:22:58 +09:00
- if @account.silenced?
= link_to 'Undo silence', unsilence_admin_account_path(@account.id), method: :post, class: 'button'
- else
= link_to 'Silence', silence_admin_account_path(@account.id), method: :post, class: 'button'
2017-02-15 08:22:58 +09:00
- if @account.suspended?
= link_to 'Undo suspension', unsuspend_admin_account_path(@account.id), method: :post, class: 'button'
- else
= link_to 'Perform full suspension', suspend_admin_account_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button'