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

adjust for new enterprise banner

Bruno Pagno7d10a6875a03
diff --git a/app/views/projects/settings/work_packages/activities/show.html.erb b/app/views/projects/settings/work_packages/activities/show.html.erb
index 8ec7dbe56c6..735c1d9a7c0 100644
--- a/app/views/projects/settings/work_packages/activities/show.html.erb
+++ b/app/views/projects/settings/work_packages/activities/show.html.erb
@@ -42,11 +42,7 @@ See COPYRIGHT and LICENSE files for more details.
<% else %>
<%=
render(
- EnterpriseEdition::BannerComponent.new(
- :comments_with_restricted_visibility,
- href: OpenProject::Static::Links.url_for(:user_guides_work_package_activity),
- mb: 3
- )
+ EnterpriseEdition::BannerComponent.new(:comments_with_restricted_visibility, mb: 3)
)
%>
<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 403780abe8c..f7ec3f07d26 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2031,6 +2031,7 @@ en:
baseline_comparison: Baseline Comparisons
board_view: Advanced Boards
conditional_highlighting: Conditional Highlighting
+ comments_with_restricted_visibility: Comments With Restricted Visibility
custom_actions: Custom Actions
custom_field_hierarchies: Custom fields of type hierarchy
customize_life_cycle: Customize Life Cycle
diff --git a/config/static_links.yml b/config/static_links.yml
index 698fa053ff3..609e1c077bc 100644
--- a/config/static_links.yml
+++ b/config/static_links.yml
@@ -153,6 +153,8 @@ enterprise_features:
href: https://www.openproject.org/docs/user-guide/agile-boards/#action-boards-enterprise-add-on
custom_field_hierarchies:
href: https://www.openproject.org/docs/system-admin-guide/custom-fields/#hierarchy-custom-field-enterprise-add-on
+ comments_with_restricted_visibility:
+ href: https://www.openproject.org/docs/user-guide/activity/#work-package-activity
sysadmin_docs:
saml:
href: https://www.openproject.org/docs/system-admin-guide/authentication/saml/
diff --git a/spec/features/projects/settings/work_packages_settings_spec.rb b/spec/features/projects/settings/work_packages_settings_spec.rb
index 16b3ac3140d..bb22f9bfeb8 100644
--- a/spec/features/projects/settings/work_packages_settings_spec.rb
+++ b/spec/features/projects/settings/work_packages_settings_spec.rb
@@ -91,7 +91,7 @@ RSpec.describe "Projects", "work packages settings menu", :js do
it "shows the enterprise banner" do
work_packages_settings_page.visit!
- expect(page).to have_test_selector("op-ee-banner-comments-with-restricted-visibility")
+ expect(page).to have_test_selector("op-enterprise-banner")
end
end