Commit f1bbb2d9 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Kamil Trzciński

Use icons for feature flag action buttons

parent 8227cdea
......@@ -13,11 +13,20 @@
%li.pages-domain-list-item.unstyled
= feature_flag.name
%div.controls.d-none.d-md-block
%div.controls.d-flex
= render 'delete_feature_flag_modal', { feature_flag: feature_flag }
= link_to 'Edit', edit_project_feature_flag_path(@project, feature_flag), class: "btn btn-sm btn-grouped"
%button.btn.btn-remove.btn-sm.btn-grouped{ type: 'button', data: { toggle: 'modal', target: "#delete-feature-flag-modal-#{feature_flag.id}" } }
Remove
= button_to edit_project_feature_flag_path(@project, feature_flag),
class: 'btn btn-default has-tooltip',
type: 'button',
title: _('Edit') do
= sprite_icon('pencil', size: 16)
%button.btn.btn-danger.has-tooltip.m-0.ml-2{ type: 'button',
data: { toggle: 'modal',
target: "#delete-feature-flag-modal-#{feature_flag.id}" },
title: _('Delete') }
= sprite_icon('remove', size: 16)
%p
- if feature_flag.active?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment