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

Replace feature hint with banner

Oliver Günther0636b295b590
diff --git a/app/views/admin/settings/work_packages_general/show.html.erb b/app/views/admin/settings/work_packages_general/show.html.erb
index a9bcc82aff0..74ff926fd66 100644
--- a/app/views/admin/settings/work_packages_general/show.html.erb
+++ b/app/views/admin/settings/work_packages_general/show.html.erb
@@ -52,6 +52,9 @@ See COPYRIGHT and LICENSE files for more details.
<p data-admin--work-packages-settings-target="warningText"></p>
</div>
</div>
+ <%=
+ render(EnterpriseEdition::BannerComponent.new(:conditional_highlighting, mb: 3))
+ %>
<div class="form--field settings--highlighting-mode">
<%= setting_select(
:work_package_list_default_highlighting_mode,
@@ -63,15 +66,6 @@ See COPYRIGHT and LICENSE files for more details.
options[:disabled] = "disabled" unless EnterpriseToken.allows_to?(:conditional_highlighting)
end
) %>
- <%= render partial: "enterprise_feature_hint",
- locals: {
- ee_feature: :conditional_highlighting,
- explanation: t("js.work_packages.table_configuration.upsale.attribute_highlighting"),
- link_out: {
- href: "https://www.openproject.org/enterprise-edition/?op_edition=community-edition&op_referrer=settings-wp-attribute-highlighting#attribute-highlighting",
- caption: t("js.work_packages.table_configuration.upsale.check_out_link")
- }
- } %>
</div>
<% if EnterpriseToken.allows_to? :conditional_highlighting %>
<div class="form--field -indented -vertical settings--highlighted-attributes" style="<%= "display: none" unless Setting[:work_package_list_default_highlighting_mode] == "inline" %>">
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b66bdd3cd80..39ce4a6d541 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2056,6 +2056,8 @@ en:
description: "Create automatically generated subjects using referenced attributes and text."
customize_life_cycle:
description: "Create and organize different project phases than the ones provided by PM2 project cycle planning."
+ conditional_highlighting:
+ description: "Need certain work packages to stand out from the mass? Use conditional highlighting in the work packages table."
form_configuration:
description: "Customize the form configuration with these additional add-ons:"
add_groups: "Add new attribute groups"
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index dafb5de8ca5..a388e002b9c 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -1164,7 +1164,6 @@ en:
warning: "You will lose your previous sorting when activating the automatic sorting mode."
columns_help_text: "Use the input field above to add columns to your table view. You can drag and drop the columns to reorder them."
upsale:
- attribute_highlighting: "Need certain work packages to stand out from the mass?"
relation_columns: "Need to see relations in the work package list?"
check_out_link: "Check out the Enterprise edition."
relation_filters:
diff --git a/config/static_links.yml b/config/static_links.yml
index dc2e8c30d72..d2e6ef7d7c4 100644
--- a/config/static_links.yml
+++ b/config/static_links.yml
@@ -147,6 +147,8 @@ enterprise_docs:
href: https://www.openproject.org/docs/system-admin-guide/manage-work-packages/work-package-status/#create-a-new-work-package-status
customize_life_cycle:
href: https://www.openproject.org/enterprise-edition
+ conditional_highlighting:
+ href: https://www.openproject.org/enterprise-edition/?op_referrer=settings-wp-attribute-highlighting#attribute-highlighting
sysadmin_docs:
saml:
href: https://www.openproject.org/docs/system-admin-guide/authentication/saml/