2018-07-13 02:16:06 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%samp= relay.inbox_url
|
|
|
|
%td
|
2018-08-28 05:39:43 +02:00
|
|
|
- if relay.accepted?
|
2018-07-13 02:16:06 +02:00
|
|
|
%span.positive-hint
|
2024-04-23 18:43:49 +02:00
|
|
|
= material_symbol('check')
|
2023-10-25 14:01:00 +02:00
|
|
|
|
2018-07-13 02:16:06 +02:00
|
|
|
= t 'admin.relays.enabled'
|
2018-08-28 05:39:43 +02:00
|
|
|
- elsif relay.pending?
|
2024-08-08 01:08:36 +02:00
|
|
|
= material_symbol('hourglass')
|
2023-10-25 14:01:00 +02:00
|
|
|
|
2018-08-28 05:39:43 +02:00
|
|
|
= t 'admin.relays.pending'
|
2018-07-13 02:16:06 +02:00
|
|
|
- else
|
|
|
|
%span.negative-hint
|
2024-04-23 18:43:49 +02:00
|
|
|
= material_symbol('close')
|
2023-10-25 14:01:00 +02:00
|
|
|
|
2018-07-13 02:16:06 +02:00
|
|
|
= t 'admin.relays.disabled'
|
|
|
|
%td
|
2018-08-28 05:39:43 +02:00
|
|
|
- if relay.accepted?
|
2024-08-20 13:48:15 +02: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-28 05:39:43 +02:00
|
|
|
- elsif !relay.pending?
|
2024-08-20 13:48:15 +02: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') }
|
2018-07-13 02:16:06 +02:00
|
|
|
|
2024-08-20 13:48:15 +02:00
|
|
|
= table_link_to 'close', t('admin.relays.delete'), admin_relay_path(relay), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }
|