This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2018-07-12 17:16:06 -07:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%samp= relay.inbox_url
|
|
|
|
%td
|
2018-08-27 20:39:43 -07:00
|
|
|
- if relay.accepted?
|
2018-07-12 17:16:06 -07:00
|
|
|
%span.positive-hint
|
|
|
|
= fa_icon('check')
|
|
|
|
= ' '
|
|
|
|
= t 'admin.relays.enabled'
|
2018-08-27 20:39:43 -07:00
|
|
|
- elsif relay.pending?
|
|
|
|
= fa_icon('hourglass')
|
|
|
|
= ' '
|
|
|
|
= t 'admin.relays.pending'
|
2018-07-12 17:16:06 -07:00
|
|
|
- else
|
|
|
|
%span.negative-hint
|
|
|
|
= fa_icon('times')
|
|
|
|
= ' '
|
|
|
|
= t 'admin.relays.disabled'
|
|
|
|
%td
|
2018-08-27 20:39:43 -07:00
|
|
|
- if relay.accepted?
|
2018-07-12 17:16:06 -07:00
|
|
|
= table_link_to 'power-off', t('admin.relays.disable'), disable_admin_relay_path(relay), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
|
2018-08-27 20:39:43 -07:00
|
|
|
- elsif !relay.pending?
|
2018-07-12 17:16:06 -07:00
|
|
|
= table_link_to 'power-off', t('admin.relays.enable'), enable_admin_relay_path(relay), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
|
|
|
|
|
|
|
|
= table_link_to 'times', t('admin.relays.delete'), admin_relay_path(relay), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }
|