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

Restyle empty state for feature flags

parent 55e4c7ca
.border-top
.row.empty-state
.col-12
.text-content
%h4.text-center= s_('FeatureFlags|Get started with feature flags')
%p.text-center
= s_('FeatureFlags|Feature flags allow you to configure your code into different flavors by dynamically toggling certain functionality.')
= link_to 'More information', '#'
.text-center
= render 'new_feature_flag_button'
- if can?(current_user, :create_feature_flags, @project)
= link_to new_project_feature_flag_path(@project), class: 'btn btn-new' do
= s_('FeatureFlags|New Feature Flag')
.table-holder.border-top .table-holder.border-top
.gl-responsive-table-row.table-row-header{ role: 'row' } .gl-responsive-table-row.table-row-header{ role: 'row' }
.table-section.section-10{ role: 'columnheader' }= s_('FeatureFlags|Status') .table-section.section-10{ role: 'columnheader' }= s_('FeatureFlags|Status')
.table-section.section-50{ role: 'columnheader' }= s_('FeatureFlags|Feature flag') .table-section.section-50{ role: 'columnheader' }= s_('FeatureFlags|Feature flag')
- if @feature_flags.empty?
.nothing-here-block
= s_('FeatureFlags|No feature flags found.')
- else
- @feature_flags.each do |feature_flag| - @feature_flags.each do |feature_flag|
= render 'delete_feature_flag_modal', { feature_flag: feature_flag } = render 'delete_feature_flag_modal', { feature_flag: feature_flag }
......
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
%button.btn.btn-default{ type: 'button', data: { toggle: 'modal', target: '#configure-feature-flags-modal' } } %button.btn.btn-default{ type: 'button', data: { toggle: 'modal', target: '#configure-feature-flags-modal' } }
= s_('FeatureFlags|Configure') = s_('FeatureFlags|Configure')
- if can?(current_user, :create_feature_flags, @project) = render 'new_feature_flag_button'
= link_to new_project_feature_flag_path(@project), class: 'btn btn-new' do
= s_('FeatureFlags|New Feature Flag')
= render 'configure_feature_flags_modal' = render 'configure_feature_flags_modal'
= render 'table'
- if @feature_flags.empty?
= render 'empty_state'
- else
= 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