Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2ba2656d
Commit
2ba2656d
authored
Sep 17, 2018
by
Winnie Hellmann
Committed by
Kamil Trzciński
Oct 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show emtpy state if now feature flags exist
parent
c15bfd70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
app/views/projects/feature_flags/_list.html.haml
app/views/projects/feature_flags/_list.html.haml
+16
-11
No files found.
app/views/projects/feature_flags/_list.html.haml
View file @
2ba2656d
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment