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
55e4c7ca
Commit
55e4c7ca
authored
6 years ago
by
Winnie Hellmann
Committed by
Kamil Trzciński
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert feature flag list to table
parent
f1bbb2d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
41 deletions
+34
-41
app/views/projects/feature_flags/_list.html.haml
app/views/projects/feature_flags/_list.html.haml
+0
-35
app/views/projects/feature_flags/_table.html.haml
app/views/projects/feature_flags/_table.html.haml
+33
-0
app/views/projects/feature_flags/index.html.haml
app/views/projects/feature_flags/index.html.haml
+1
-6
No files found.
app/views/projects/feature_flags/_list.html.haml
deleted
100644 → 0
View file @
f1bbb2d9
.card
.card-header
Feature flags
.badge.badge-pill
=
@feature_flags
.
count
%ul
.content-list.pages-domain-list
-
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-flex
=
render
'delete_feature_flag_modal'
,
{
feature_flag:
feature_flag
}
=
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?
%span
.badge.badge-success
Enabled
-
else
%span
.badge.badge-danger
Disabled
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/views/projects/feature_flags/_table.html.haml
0 → 100644
View file @
55e4c7ca
.table-holder.border-top
.gl-responsive-table-row.table-row-header
{
role:
'row'
}
.table-section.section-10
{
role:
'columnheader'
}=
s_
(
'FeatureFlags|Status'
)
.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
|
=
render
'delete_feature_flag_modal'
,
{
feature_flag:
feature_flag
}
.gl-responsive-table-row
{
role:
'row'
}
.table-section.section-10
{
role:
'gridcell'
}
=
check_box_tag
'feature_flag_status'
,
nil
,
feature_flag
.
active?
,
disabled:
true
.table-section.section-50.d-flex.flex-column
{
role:
'gridcell'
}
.text-monospace
=
feature_flag
.
name
.text-secondary
=
feature_flag
.
description
.table-section.section-40.table-button-footer
{
role:
'gridcell'
}
.table-action-buttons
=
link_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.ml-2
{
type:
'button'
,
data:
{
toggle:
'modal'
,
target:
"#delete-feature-flag-modal-#{feature_flag.id}"
},
title:
_
(
'Delete'
)
}
=
sprite_icon
(
'remove'
,
size:
16
)
This diff is collapsed.
Click to expand it.
app/views/projects/feature_flags/index.html.haml
View file @
55e4c7ca
...
...
@@ -11,10 +11,5 @@
=
link_to
new_project_feature_flag_path
(
@project
),
class:
'btn btn-new'
do
=
s_
(
'FeatureFlags|New Feature Flag'
)
%p
.light
With GitLab Feature Flags
%hr
.clearfix
=
render
'configure_feature_flags_modal'
=
render
'
list
'
=
render
'
table
'
This diff is collapsed.
Click to expand it.
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