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

Remove top button row from feature flag empty state

parent 7827d187
%button.btn.btn-primary.btn-inverted.append-right-8{ type: 'button', data: { toggle: 'modal', target: '#configure-feature-flags-modal' } }>
= s_('FeatureFlags|Configure')
......@@ -7,5 +7,8 @@
= s_('FeatureFlags|Feature flags allow you to configure your code into different flavors by dynamically toggling certain functionality.')
= link_to 'More information', '#'
.text-center
.text-center.append-bottom-8
= render 'new_feature_flag_button'
.text-center
= render 'configure_feature_flags_button'
- if can?(current_user, :create_feature_flags, @project)
= link_to new_project_feature_flag_path(@project), class: 'btn btn-new' do
= link_to new_project_feature_flag_path(@project), class: 'btn btn-success' do
= s_('FeatureFlags|New Feature Flag')
- page_title 'Feature Flags'
%h3.page-title.with-button
Feature Flags
.pull-right
%button.btn.btn-primary.btn-inverted.append-right-8{ type: 'button', data: { toggle: 'modal', target: '#configure-feature-flags-modal' } }>
= s_('FeatureFlags|Configure')
= render 'new_feature_flag_button'
- page_title _('Feature Flags')
= render 'configure_feature_flags_modal'
- if @feature_flags.empty?
= render 'empty_state'
- else
%h3.page-title.with-button
= _('Feature Flags')
.pull-right
= render 'configure_feature_flags_button'
= render 'new_feature_flag_button'
= render 'table'
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