diff options
Diffstat (limited to 'lib/sidebars/user_profile/panel.rb')
-rw-r--r-- | lib/sidebars/user_profile/panel.rb | 16 |
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)) |