Commit 9e806fd4 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'ide' of gitlab.com:gitlab-org/gitlab-ce into ide

parents 0c560cbb a536a9ed
...@@ -14,7 +14,7 @@ module TreeHelper ...@@ -14,7 +14,7 @@ module TreeHelper
def repo_url(project) def repo_url(project)
if controller_name == 'projects' if controller_name == 'projects'
readme_path(project) readme_path(project) || project_tree_path(project, project.default_branch)
else else
request.original_url request.original_url
end end
......
...@@ -74,9 +74,7 @@ ...@@ -74,9 +74,7 @@
= 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
%li = render 'shared/user_dropdown_experimental_features'
= link_to "Turn on new navigation", profile_preferences_path(anchor: "new-navigation")
= render 'shared/repo/user_dropdown_link'
%li.divider %li.divider
%li %li
= link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link" = link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link"
......
...@@ -68,9 +68,7 @@ ...@@ -68,9 +68,7 @@
= 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
%li = render 'shared/user_dropdown_experimental_features'
= link_to "Turn off new navigation", profile_preferences_path(anchor: "new-navigation")
= render 'shared/repo/user_dropdown_link'
%li.divider %li.divider
%li %li
= link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link" = link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link"
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
= scheme.name = scheme.name
.col-sm-12 .col-sm-12
%hr %hr
%h3#experimental-features Experimental features
%hr
.col-lg-4.profile-settings-sidebar#new-navigation .col-lg-4.profile-settings-sidebar#new-navigation
%h4.prepend-top-0 %h4.prepend-top-0
New Navigation New Navigation
......
%li= link_to 'Experimental features', profile_preferences_path(anchor: 'experimental-features')
%li= link_to "Turn #{show_new_repo? ? 'off' : 'on'} new repository", profile_preferences_path(anchor: "new-repository")
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