|
|
|
@ -168,10 +168,11 @@ module Redmine::MenuManager::MenuHelper |
|
|
|
|
link_text << content_tag(:span, |
|
|
|
|
class: "#{menu_class}--item-title #{item.badge(project).present? ? "#{menu_class}--item-title_has-badge" : ''}", |
|
|
|
|
lang: menu_item_locale(item)) do |
|
|
|
|
''.html_safe + caption + badge_for(item) |
|
|
|
|
end |
|
|
|
|
if item.enterprise_feature.present? && !EnterpriseToken.allows_to?(item.enterprise_feature) |
|
|
|
|
link_text << (' '.html_safe + spot_icon('enterprise-badge')) |
|
|
|
|
title_text = ''.html_safe + caption + badge_for(item) |
|
|
|
|
if item.enterprise_feature.present? && !EnterpriseToken.allows_to?(item.enterprise_feature) |
|
|
|
|
title_text << (' '.html_safe + spot_icon('enterprise-badge')) |
|
|
|
|
end |
|
|
|
|
title_text |
|
|
|
|
end |
|
|
|
|
link_text << (' '.html_safe + op_icon(item.icon_after)) if item.icon_after.present? |
|
|
|
|
html_options = item.html_options(selected:) |
|
|
|
|