Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/ssh_keys/_key_delete.html.haml')
-rw-r--r--app/views/shared/ssh_keys/_key_delete.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/shared/ssh_keys/_key_delete.html.haml b/app/views/shared/ssh_keys/_key_delete.html.haml
index 1526e5d3eda..f8bb0e21f67 100644
--- a/app/views/shared/ssh_keys/_key_delete.html.haml
+++ b/app/views/shared/ssh_keys/_key_delete.html.haml
@@ -1,6 +1,9 @@
+- title = _('Delete Key')
+- aria = { label: title }
+
- if defined?(text)
- = button_to text, '#', class: html_class, data: button_data
+ = button_to text, '#', class: html_class, data: button_data, title: title, aria: aria
- else
- = button_to '#', class: html_class, data: button_data do
+ = button_to '#', class: html_class, data: button_data, title: title, aria: aria do
%span.sr-only= _('Delete')
= sprite_icon('remove')