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 board_view banner

Oliver Güntheraed79dd957f9
diff --git a/config/static_links.yml b/config/static_links.yml
index d2e6ef7d7c4..9b470df87fd 100644
--- a/config/static_links.yml
+++ b/config/static_links.yml
@@ -149,6 +149,8 @@ enterprise_docs:
href: https://www.openproject.org/enterprise-edition
conditional_highlighting:
href: https://www.openproject.org/enterprise-edition/?op_referrer=settings-wp-attribute-highlighting#attribute-highlighting
+ board_view:
+ href: https://www.openproject.org/docs/user-guide/agile-boards/#action-boards-enterprise-add-on
sysadmin_docs:
saml:
href: https://www.openproject.org/docs/system-admin-guide/authentication/saml/
diff --git a/modules/boards/app/views/boards/boards/_form.html.erb b/modules/boards/app/views/boards/boards/_form.html.erb
index 8f584cce196..4f50a35a1bf 100644
--- a/modules/boards/app/views/boards/boards/_form.html.erb
+++ b/modules/boards/app/views/boards/boards/_form.html.erb
@@ -61,18 +61,9 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required -align-start">
<label class="form--label" for="board_type"><%= t("boards.label_board_type") %></label>
<div class="form--field-container -enterprise-restricted">
- <% unless EnterpriseToken.allows_to?(:board_view) %>
- <p class="boards-enterprise-banner-wide">
- <%= angular_component_tag "opce-enterprise-banner",
- inputs: {
- collapsible: false,
- opReferrer: "boards",
- linkMessage: t("boards.upsale.upgrade"),
- textMessage: t("boards.upsale.teaser_text"),
- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:boards][:href]
- } %>
- </p>
- <% end %>
+ <%=
+ render(EnterpriseEdition::BannerComponent.new(:board_view))
+ %>
<div class="op-tile-block">
<% board_types.each_with_index do |board_type, tile_number| %>
diff --git a/modules/boards/config/locales/en.yml b/modules/boards/config/locales/en.yml
index 02514fafb78..2412c528976 100644
--- a/modules/boards/config/locales/en.yml
+++ b/modules/boards/config/locales/en.yml
@@ -8,6 +8,10 @@ en:
permission_manage_board_views: "Manage boards"
project_module_board_view: "Boards"
+ ee:
+ upsale:
+ board_view:
+ description: 'Would you like to automate your workflows with Boards? Advanced boards are an Enterprise add-on. Please upgrade to a paid plan.'
boards:
label_board: "Board"
label_boards: "Boards"
@@ -41,7 +45,3 @@ en:
subtasks: >
Board with automated columns for sub-elements.
Dragging work packages to other lists updates the parent accordingly.
-
- upsale:
- teaser_text: 'Would you like to automate your workflows with Boards? Advanced boards are an Enterprise add-on. Please upgrade to a paid plan.'
- upgrade: 'Upgrade now'