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
e1b3c02d
Commit
e1b3c02d
authored
Jul 04, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enables the option in user preferences to turn on the new navigation
parent
f7e7e40d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
26 deletions
+18
-26
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+0
-4
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+2
-3
app/views/profiles/preferences/show.html.haml
app/views/profiles/preferences/show.html.haml
+16
-19
No files found.
app/helpers/application_helper.rb
View file @
e1b3c02d
...
@@ -298,10 +298,6 @@ module ApplicationHelper
...
@@ -298,10 +298,6 @@ module ApplicationHelper
end
end
end
end
def
can_toggle_new_nav?
Rails
.
env
.
development?
end
def
show_new_nav?
def
show_new_nav?
cookies
[
"new_nav"
]
==
"true"
cookies
[
"new_nav"
]
==
"true"
end
end
...
...
app/views/layouts/header/_default.html.haml
View file @
e1b3c02d
...
@@ -74,7 +74,6 @@
...
@@ -74,7 +74,6 @@
=
link_to
"Profile"
,
current_user
,
class:
'profile-link'
,
data:
{
user:
current_user
.
username
}
=
link_to
"Profile"
,
current_user
,
class:
'profile-link'
,
data:
{
user:
current_user
.
username
}
%li
%li
=
link_to
"Settings"
,
profile_path
=
link_to
"Settings"
,
profile_path
-
if
can_toggle_new_nav?
%li
%li
=
link_to
"Turn on new nav"
,
profile_preferences_path
(
anchor:
"new-navigation"
)
=
link_to
"Turn on new nav"
,
profile_preferences_path
(
anchor:
"new-navigation"
)
%li
.divider
%li
.divider
...
...
app/views/profiles/preferences/show.html.haml
View file @
e1b3c02d
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
.preview
=
image_tag
"
#{
scheme
.
css_class
}
-scheme-preview.png"
.preview
=
image_tag
"
#{
scheme
.
css_class
}
-scheme-preview.png"
=
f
.
radio_button
:color_scheme_id
,
scheme
.
id
=
f
.
radio_button
:color_scheme_id
,
scheme
.
id
=
scheme
.
name
=
scheme
.
name
-
if
can_toggle_new_nav?
.col-sm-12
.col-sm-12
%hr
%hr
.col-lg-3.profile-settings-sidebar
#new-navigation
.col-lg-3.profile-settings-sidebar
#new-navigation
...
@@ -24,8 +23,6 @@
...
@@ -24,8 +23,6 @@
New Navigation
New Navigation
%p
%p
This setting allows you to turn on or off the new upcoming navigation concept.
This setting allows you to turn on or off the new upcoming navigation concept.
=
succeed
'.'
do
=
link_to
'Learn more'
,
''
,
target:
'_blank'
.col-lg-9.syntax-theme
.col-lg-9.syntax-theme
=
label_tag
do
=
label_tag
do
.preview
=
image_tag
"old_nav.png"
.preview
=
image_tag
"old_nav.png"
...
...
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