From 4b0b7e1a7f9f67d04645b46196b720c3f85ccc52 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 19 Mar 2020 15:50:55 +0100 Subject: [PATCH] Add caption for menu element --- config/initializers/menus.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb index 3fbd59f543..05eaf0aaaa 100644 --- a/config/initializers/menus.rb +++ b/config/initializers/menus.rb @@ -45,6 +45,7 @@ Redmine::MenuManager.map :top_menu do |menu| menu.push :news, { controller: '/news', project_id: nil, action: 'index' }, context: :modules, + caption: I18n.t('label_news_plural'), if: Proc.new { (User.current.logged? || !Setting.login_required?) && User.current.allowed_to?(:view_news, nil, global: true)