Redesign admin accounts index (#9340)
* Improve overview of accounts in admin UI - Display suspended status, role, last activity and IP prominently - Default to showing local accounts - Default to not showing suspended accounts * Remove unused strings * Fix tests * Allow filtering accounts by IP maskmain
parent
db9aea34de
commit
73faadad28
@ -1,18 +1,15 @@
|
|||||||
%tr
|
%tr
|
||||||
%td.username
|
|
||||||
= account.username
|
|
||||||
%td
|
%td
|
||||||
- unless account.local?
|
= admin_account_link_to(account)
|
||||||
= link_to account.domain, admin_accounts_path(by_domain: account.domain)
|
|
||||||
%td
|
%td
|
||||||
- if account.local?
|
%div{ style: 'margin: -2px 0' }= account_badge(account, all: true)
|
||||||
- if account.user.nil?
|
%td
|
||||||
= t("admin.accounts.moderation.suspended")
|
- if account.user_current_sign_in_ip
|
||||||
- else
|
%samp= account.user_current_sign_in_ip
|
||||||
= t("admin.accounts.roles.#{account.user.role}")
|
|
||||||
- else
|
- else
|
||||||
= account.protocol.humanize
|
\-
|
||||||
%td
|
%td
|
||||||
= table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}")
|
- if account.user_current_sign_in_at
|
||||||
= table_link_to 'globe', t('admin.accounts.public'), TagManager.instance.url_for(account)
|
%time.time-ago{ datetime: account.user_current_sign_in_at.iso8601, title: l(account.user_current_sign_in_at) }= l account.user_current_sign_in_at
|
||||||
= table_link_to 'pencil', t('admin.accounts.edit'), admin_account_path(account.id)
|
- else
|
||||||
|
\-
|
||||||
|
Loading…
Reference in new issue