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
90a0e581
Commit
90a0e581
authored
Sep 24, 2018
by
Winnie Hellmann
Committed by
Kamil Trzciński
Oct 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove top button row from feature flag empty state
parent
7827d187
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
app/views/projects/feature_flags/_configure_feature_flags_button.html.haml
...s/feature_flags/_configure_feature_flags_button.html.haml
+2
-0
app/views/projects/feature_flags/_empty_state.html.haml
app/views/projects/feature_flags/_empty_state.html.haml
+4
-1
app/views/projects/feature_flags/_new_feature_flag_button.html.haml
...projects/feature_flags/_new_feature_flag_button.html.haml
+1
-1
app/views/projects/feature_flags/index.html.haml
app/views/projects/feature_flags/index.html.haml
+8
-10
No files found.
app/views/projects/feature_flags/_configure_feature_flags_button.html.haml
0 → 100644
View file @
90a0e581
%button
.btn.btn-primary.btn-inverted.append-right-8
{
type:
'button'
,
data:
{
toggle:
'modal'
,
target:
'#configure-feature-flags-modal'
}
}
>
=
s_
(
'FeatureFlags|Configure'
)
app/views/projects/feature_flags/_empty_state.html.haml
View file @
90a0e581
...
...
@@ -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'
app/views/projects/feature_flags/_new_feature_flag_button.html.haml
View file @
90a0e581
-
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'
)
app/views/projects/feature_flags/index.html.haml
View file @
90a0e581
-
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'
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