OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add enterprise icon to tab
Oliver Günthered3206267ffd
diff --git a/app/components/types/edit_page_header_component.html.erb b/app/components/types/edit_page_header_component.html.erbindex ae9f50512ba..ec9efa9f4e2 100644--- a/app/components/types/edit_page_header_component.html.erb+++ b/app/components/types/edit_page_header_component.html.erb@@ -36,6 +36,8 @@ See COPYRIGHT and LICENSE files for more details.header.with_tab_nav(label: nil) do |tab_nav|@tabs.each do |tab|tab_nav.with_tab(selected: selected_tab(@tabs) == tab, href: tab[:path]) do |t|+ feature = tab[:enterprise_feature]+ t.with_icon(icon: :"op-enterprise-addons") if feature && !EnterpriseToken.allows_to?(feature)t.with_text { I18n.t(tab[:label]) }endenddiff --git a/app/helpers/types_helper.rb b/app/helpers/types_helper.rbindex f4458d04870..a4766c0a47f 100644--- a/app/helpers/types_helper.rb+++ b/app/helpers/types_helper.rb@@ -63,7 +63,8 @@ module ::TypesHelpername: "subject_configuration",path: edit_tab_type_path(id: @type.id, tab: :subject_configuration),label: "types.edit.subject_configuration.tab",- view_component: WorkPackages::Types::SubjectConfigurationComponent+ view_component: WorkPackages::Types::SubjectConfigurationComponent,+ enterprise_feature: :automatic_subject_generation}tabs.insert(2, subject_configuration_tab)