Skip to content
Snippets Groups Projects
Commit 30cc38c4 authored by Austin Regnery's avatar Austin Regnery :speech_balloon: Committed by Illya Klymov
Browse files

Migrate the edit button

Changelog: changed
parent dc7522f5
No related branches found
No related tags found
1 merge request!89899Migrate the edit button
......@@ -18,8 +18,7 @@
= sprite_icon('star')
- if can?(current_user, :admin_label, label)
%li.gl-display-inline-block
= link_to label.edit_path, class: 'btn gl-button btn-default-tertiary btn-sm edit has-tooltip', title: _('Edit'), data: { placement: 'bottom' }, aria_label: _('Edit') do
= sprite_icon('pencil')
= render Pajamas::ButtonComponent.new(href: label.edit_path, category: :tertiary, icon: 'pencil', button_options: { class: 'edit has-tooltip', 'title': _('Edit'), 'aria_label': _('Edit'), data: { placement: 'bottom' } })
- if can?(current_user, :admin_label, label)
%li.gl-display-inline-block
.dropdown
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment