Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/sidebars_helper.rb')
-rw-r--r--app/helpers/sidebars_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/sidebars_helper.rb b/app/helpers/sidebars_helper.rb
index 33ca5ad584e..f983812ad22 100644
--- a/app/helpers/sidebars_helper.rb
+++ b/app/helpers/sidebars_helper.rb
@@ -358,7 +358,9 @@ module SidebarsHelper
def context_switcher_links
links = [
({ title: s_('Navigation|Your work'), link: root_path, icon: 'work' } if current_user),
- { title: s_('Navigation|Explore'), link: explore_root_path, icon: 'compass' }
+ { title: s_('Navigation|Explore'), link: explore_root_path, icon: 'compass' },
+ ({ title: s_('Navigation|Profile'), link: profile_path, icon: 'profile' } if current_user),
+ ({ title: s_('Navigation|Preferences'), link: profile_preferences_path, icon: 'preferences' } if current_user)
]
# Usually, using current_user.admin? is discouraged because it does not