This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2017-01-27 21:56:10 -05:00
|
|
|
- content_for :page_title do
|
|
|
|
= @account.acct
|
|
|
|
|
2016-12-04 12:10:40 -05: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
|
|
|
|
%th Current IP
|
|
|
|
%td= @account.user.current_sign_in_ip
|
|
|
|
- else
|
|
|
|
%tr
|
|
|
|
%th Profile URL
|
|
|
|
%td= link_to @account.url
|
|
|
|
%tr
|
|
|
|
%th Feed URL
|
|
|
|
%td= link_to @account.remote_url
|
|
|
|
|
|
|
|
= simple_form_for @account, url: admin_account_path(@account.id) do |f|
|
|
|
|
= render 'shared/error_messages', object: @account
|
|
|
|
|
|
|
|
= f.input :silenced, as: :boolean, wrapper: :with_label
|
2016-12-05 16:59:30 -05:00
|
|
|
= f.input :suspended, as: :boolean, wrapper: :with_label
|
2016-12-04 12:10:40 -05:00
|
|
|
|
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|
2016-12-06 12:22:59 -05:00
|
|
|
|
|
|
|
= link_to 'Perform full suspension', suspend_admin_account_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button'
|