2016-12-05 02:10:40 +09:00
|
|
|
%ul.filters
|
|
|
|
%li= link_to 'Local', admin_accounts_path(local: '1')
|
|
|
|
%li= link_to 'Remote', admin_accounts_path(remote: '1')
|
|
|
|
%li= link_to 'Silenced', admin_accounts_path(silenced: '1')
|
2016-12-07 02:22:59 +09:00
|
|
|
%li= link_to 'Suspended', admin_accounts_path(suspended: '1')
|
2016-12-05 02:10:40 +09:00
|
|
|
%li= link_to 'Most recent', admin_accounts_path(recent: '1')
|
|
|
|
|
2016-12-04 03:08:07 +09:00
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Username
|
|
|
|
%th Domain
|
|
|
|
%th Subscribed
|
2016-12-05 02:10:40 +09:00
|
|
|
%th Silenced
|
2016-12-07 02:22:59 +09:00
|
|
|
%th Suspended
|
2016-12-05 02:10:40 +09:00
|
|
|
%th
|
2016-12-04 03:08:07 +09:00
|
|
|
%tbody
|
|
|
|
- @accounts.each do |account|
|
|
|
|
%tr
|
|
|
|
%td= account.username
|
2016-12-05 02:10:40 +09:00
|
|
|
%td
|
|
|
|
- unless account.local?
|
|
|
|
= link_to account.domain, admin_accounts_path(by_domain: account.domain)
|
|
|
|
%td
|
2016-12-04 03:08:07 +09:00
|
|
|
- if account.local?
|
|
|
|
Local
|
|
|
|
- elsif account.subscribed?
|
|
|
|
%i.fa.fa-check
|
|
|
|
- else
|
|
|
|
%i.fa.fa-times
|
2016-12-05 02:10:40 +09:00
|
|
|
%td
|
|
|
|
- if account.silenced?
|
|
|
|
%i.fa.fa-check
|
|
|
|
- else
|
|
|
|
%i.fa.fa-times
|
2016-12-07 02:22:59 +09:00
|
|
|
%td
|
|
|
|
- if account.suspended?
|
|
|
|
%i.fa.fa-check
|
|
|
|
- else
|
|
|
|
%i.fa.fa-times
|
2016-12-05 02:10:40 +09:00
|
|
|
%td= link_to 'Edit', admin_account_path(account.id)
|
2016-12-04 03:30:13 +09:00
|
|
|
|
2016-12-04 03:08:07 +09:00
|
|
|
= will_paginate @accounts, pagination_options
|