|
|
@ -104,11 +104,9 @@ |
|
|
|
= 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) |
|
|
|
|
|
|
|
%tr |
|
|
|
%th{ rowspan: can?(:create, :email_domain_block) ? 3 : 2 }= t('admin.accounts.email') |
|
|
|
%td{ rowspan: can?(:create, :email_domain_block) ? 3 : 2 }= @account.user_email |
|
|
|
%td= table_link_to 'edit', t('admin.accounts.change_email.label'), admin_account_change_email_path(@account.id) if can?(:change_email, @account.user) |
|
|
|
|
|
|
|
%tr |
|
|
|
%th{ rowspan: can?(:create, :email_domain_block) ? 2 : 1 }= t('admin.accounts.email') |
|
|
|
%td{ rowspan: can?(:create, :email_domain_block) ? 2 : 1 }= masked_email(@account.user_email) |
|
|
|
//%td= table_link_to 'edit', t('admin.accounts.change_email.label'), admin_account_change_email_path(@account.id) if can?(:change_email, @account.user) |
|
|
|
%td= table_link_to 'search', t('admin.accounts.search_same_email_domain'), admin_accounts_path(email: "%@#{@account.user_email.split('@').last}") |
|
|
|
|
|
|
|
- if can?(:create, :email_domain_block) |
|
|
|