blob: 7d3f449e5cd18a21cfd264d729deb5054e4662a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
- content_for :page_title do
= @account.acct
%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
= f.input :suspended, as: :boolean, wrapper: :with_label
.actions
= f.button :button, t('generic.save_changes'), type: :submit
= link_to 'Perform full suspension', suspend_admin_account_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button'
|