Skip to content

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

show enterprise banner in wp configuration setting for highlighting

bsatarnejad0443e5201eed
diff --git a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb
index 15052f86d3f..68a559c5f78 100644
--- a/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb
+++ b/app/views/admin/settings/work_packages_settings/_enterprise_feature_hint.html.erb
@@ -1,13 +1,9 @@
<% unless EnterpriseToken.allows_to?(ee_feature) %>
<span class="form--field -indented">
- <div class="ee-attribute-highlighting-upsale op-toast -ee-upsale">
- <div class="op-toast--content">
- <p><strong><%= title.present? ? title : t('js.upsale.ee_only') %></strong></p>
- <p><%= explanation %></p>
- <p>
- <%= link_to link_out[:caption], link_out[:href], target: 'blank' %>
- </p>
- </div>
- </div>
+ <enterprise-banner-bootstrap
+ text-message="<%= explanation %>"
+ more-info-text="<%= t('js.work_packages.table_configuration.upsale.more-info-text') %>"
+ more-info-link="https://www.openproject.org/docs/user-guide/work-packages/work-package-table-configuration/#attribute-highlighting-premium-feature">
+ </enterprise-banner-bootstrap>
</span>
<% end %>