summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-09-18 13:34:05 +0200
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-09-19 15:44:08 +0200
commitc03df9ea99120202605cb873a54b75eb5a3a34a2 (patch)
treef9efd2621409507c545b396044a0caf6964de2f3
parentf4c6897c1a6315f6e3c9a8efa9d36dd63579e427 (diff)
downloadgitlab-ce-c03df9ea99120202605cb873a54b75eb5a3a34a2.tar.gz
Use icons for feature flag action buttons
-rw-r--r--app/views/projects/feature_flags/_list.html.haml17
1 files changed, 13 insertions, 4 deletions
diff --git a/app/views/projects/feature_flags/_list.html.haml b/app/views/projects/feature_flags/_list.html.haml
index c64e8404215..bc91756d14f 100644
--- a/app/views/projects/feature_flags/_list.html.haml
+++ b/app/views/projects/feature_flags/_list.html.haml
@@ -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?