2021-05-14 03:10:11 +00:00
|
|
|
- title = _('Delete Key')
|
|
|
|
- aria = { label: title }
|
|
|
|
|
2021-01-25 18:09:03 +00:00
|
|
|
- if defined?(text)
|
2021-05-14 03:10:11 +00:00
|
|
|
= button_to text, '#', class: html_class, data: button_data, title: title, aria: aria
|
2021-01-25 18:09:03 +00:00
|
|
|
- else
|
2021-05-14 03:10:11 +00:00
|
|
|
= button_to '#', class: html_class, data: button_data, title: title, aria: aria do
|
2021-01-25 18:09:03 +00:00
|
|
|
%span.sr-only= _('Delete')
|
|
|
|
= sprite_icon('remove')
|