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

Show emtpy state if now feature flags exist

parent c15bfd70
......@@ -4,16 +4,21 @@
.badge.badge-pill
= @feature_flags.count
%ul.content-list.pages-domain-list
- @feature_flags.each do |feature_flag|
%li.pages-domain-list-item.unstyled
= feature_flag.name
- if @feature_flags.empty?
%li
.nothing-here-block
= s_('FeatureFlags|No feature flags found.')
- else
- @feature_flags.each do |feature_flag|
%li.pages-domain-list-item.unstyled
= feature_flag.name
%div.controls.d-none.d-md-block
= link_to 'Edit', edit_project_feature_flag_path(@project, feature_flag), class: "btn btn-sm btn-grouped"
= link_to 'Remove', project_feature_flag_path(@project, feature_flag), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-sm btn-grouped"
%div.controls.d-none.d-md-block
= link_to 'Edit', edit_project_feature_flag_path(@project, feature_flag), class: "btn btn-sm btn-grouped"
= link_to 'Remove', project_feature_flag_path(@project, feature_flag), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-sm btn-grouped"
%p
- if feature_flag.active?
%span.badge.badge-success Enabled
- else
%span.badge.badge-danger Disabled
\ No newline at end of file
%p
- if feature_flag.active?
%span.badge.badge-success Enabled
- else
%span.badge.badge-danger Disabled
\ No newline at end of file
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