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 'lib/sidebars/user_profile/panel.rb')
-rw-r--r--lib/sidebars/user_profile/panel.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/sidebars/user_profile/panel.rb b/lib/sidebars/user_profile/panel.rb
index 1852ef928f4..b15538c698b 100644
--- a/lib/sidebars/user_profile/panel.rb
+++ b/lib/sidebars/user_profile/panel.rb
@@ -20,25 +20,11 @@ module Sidebars
override :super_sidebar_context_header
def super_sidebar_context_header
- @super_sidebar_context_header ||= {
- title: user_name,
- avatar: context.container.avatar_url,
- avatar_shape: 'circle'
- }
+ _('Profile')
end
private
- def user
- context.container
- end
-
- def user_name
- return user_display_name(user) if user.blocked? || !user.confirmed?
-
- user.name
- end
-
def add_menus
add_menu(Sidebars::UserProfile::Menus::OverviewMenu.new(context))
add_menu(Sidebars::UserProfile::Menus::ActivityMenu.new(context))