diff options
Diffstat (limited to 'lib/sidebars/projects/panel.rb')
-rw-r--r-- | lib/sidebars/projects/panel.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sidebars/projects/panel.rb b/lib/sidebars/projects/panel.rb index 9d0f5eb87bd..a47095bd665 100644 --- a/lib/sidebars/projects/panel.rb +++ b/lib/sidebars/projects/panel.rb @@ -15,6 +15,15 @@ module Sidebars _('Project navigation') end + override :super_sidebar_context_header + def super_sidebar_context_header + @super_sidebar_context_header ||= { + title: context.project.name, + avatar: context.project.avatar_url, + id: context.project.id + } + end + private def add_menus |