nas/app/views/admin/friend_servers/_friend_domain.html.haml
2024-08-21 18:13:33 +09:00

31 lines
1 KiB
Text

%tr
%td
- unless friend.available
%span.negative-hint
= material_symbol('close')
 
= t 'admin.friend_servers.disabled'
%samp= friend.domain
%td
- if friend.accepted?
%span.positive-hint
= material_symbol('check')
 
= t 'admin.friend_servers.enabled'
- elsif friend.i_am_pending?
= material_symbol('hourglass')
 
= t 'admin.friend_servers.pending'
- elsif friend.they_are_pending?
%span.warning-hint
= material_symbol('hourglass')
 
= t 'admin.friend_servers.pending_you'
- else
%span.negative-hint
= material_symbol('close')
 
= t 'admin.friend_servers.disabled'
%td
= table_link_to 'edit', t('admin.friend_servers.edit_friend'), edit_admin_friend_server_path(friend)
= table_link_to 'close', t('admin.friend_servers.delete'), admin_friend_server_path(friend), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }