Display deleted users' role as “Suspended” (#6339)
Follow-up to 87ee458079
which missed a spot where
the same error occurs.
lolsob-rspec
parent
0efaa528c4
commit
42457924eb
|
@ -18,6 +18,9 @@
|
||||||
%tr
|
%tr
|
||||||
%th= t('admin.accounts.role')
|
%th= t('admin.accounts.role')
|
||||||
%td
|
%td
|
||||||
|
- if @account.user.nil?
|
||||||
|
= t("admin.accounts.moderation.suspended")
|
||||||
|
- else
|
||||||
= t("admin.accounts.roles.#{@account.user&.role}")
|
= t("admin.accounts.roles.#{@account.user&.role}")
|
||||||
= table_link_to 'angle-double-up', t('admin.accounts.promote'), promote_admin_account_role_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:promote, @account.user)
|
= table_link_to 'angle-double-up', t('admin.accounts.promote'), promote_admin_account_role_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:promote, @account.user)
|
||||||
= table_link_to 'angle-double-down', t('admin.accounts.demote'), demote_admin_account_role_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:demote, @account.user)
|
= table_link_to 'angle-double-down', t('admin.accounts.demote'), demote_admin_account_role_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:demote, @account.user)
|
||||||
|
|
Loading…
Reference in New Issue