diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-21 14:45:05 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-21 14:45:23 +0100 |
commit | 79a842c53d77e9b5b95c538372ac263c28864659 (patch) | |
tree | 0b13aab8a71e277527e4782678bdd75806236d90 /app/views/layouts/header/_default.html.haml | |
parent | 1c2547d2a96fc29e7b009e95d69d17c637d11a0a (diff) | |
download | gitlab-ce-79a842c53d77e9b5b95c538372ac263c28864659.tar.gz |
fixed scss-lint job
only display the toggle setting in development env for now
Diffstat (limited to 'app/views/layouts/header/_default.html.haml')
-rw-r--r-- | app/views/layouts/header/_default.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml index 34dcde38908..f056c0af968 100644 --- a/app/views/layouts/header/_default.html.haml +++ b/app/views/layouts/header/_default.html.haml @@ -74,8 +74,9 @@ = link_to "Profile", current_user, class: 'profile-link', data: { user: current_user.username } %li = link_to "Settings", profile_path - %li - = link_to "Turn on new nav", profile_preferences_path(anchor: "new-navigation") + - if can_toggle_new_nav? + %li + = link_to "Turn on new nav", profile_preferences_path(anchor: "new-navigation") %li.divider %li = link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link" |