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
Allow href to be optional, as most link to enterprise page
Oliver Günther71a46b9b393e
diff --git a/app/components/enterprise_edition/upsale_buttons_component.rb b/app/components/enterprise_edition/upsale_buttons_component.rbindex abb909c1669..4369e4adb45 100644--- a/app/components/enterprise_edition/upsale_buttons_component.rb+++ b/app/components/enterprise_edition/upsale_buttons_component.rb@@ -88,13 +88,9 @@ module EnterpriseEditiondef enterprise_linkhref_value = OpenProject::Static::Links.links.dig(:enterprise_features, feature_key, :href)+ default_value = OpenProject::Static::Links.links.dig(:enterprise_features, :default, :href)- unless href_value- raise "A link for this feature needs to be provided " \- "in OpenProject::Static::Links.enterprise_features[#{feature_key}][:href]"- end-- href_value+ href_value || default_valueendendenddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 899517ebb82..3a7db1cd23e 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2063,6 +2063,8 @@ en: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."+ work_package_query_relation_columns:+ description: "Need to see relations or child elements in the work package list?"edit_attribute_groups:description: "Customize form configuration with these additional add-ons:"features:diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex a94ad708f9c..c9ca744521a 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -1158,9 +1158,6 @@ en:manually: "Manually"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:- relation_columns: "Need to see relations in the work package list?"- check_out_link: "Check out the Enterprise edition."relation_filters:filter_work_packages_by_relation_type: "Filter work packages by relation type"tabs:diff --git a/config/static_links.yml b/config/static_links.ymlindex 3d7f13bc09e..698fa053ff3 100644--- a/config/static_links.yml+++ b/config/static_links.yml@@ -131,6 +131,8 @@ pricing:progress_tracking_docs:href: https://www.openproject.org/docs/user-guide/time-and-costs/progress-tracking/enterprise_features:+ default:+ href: https://www.openproject.org/enterprise-editionwork_package_subject_generation:href: https://www.openproject.org/docs/system-admin-guide/manage-work-packages/work-package-types/#work-package-subject-configuration-enterprise-add-onform_configuration:@@ -145,34 +147,12 @@ enterprise_features:href: https://www.openproject.org/docs/system-admin-guide/custom-fields/#create-a-multi-select-custom-fieldreadonly_work_packages: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-editionconditional_highlighting:href: https://www.openproject.org/enterprise-edition/?op_referrer=settings-wp-attribute-highlighting#attribute-highlightingboard_view:href: https://www.openproject.org/docs/user-guide/agile-boards/#action-boards-enterprise-add-oncustom_field_hierarchies:href: https://www.openproject.org/docs/system-admin-guide/custom-fields/#hierarchy-custom-field-enterprise-add-on- define_custom_style:- href: https://www.openproject.org/enterprise-edition- custom_actions:- href: https://www.openproject.org/enterprise-edition- date_alerts:- href: https://www.openproject.org/enterprise-edition- work_package_sharing:- href: https://www.openproject.org/enterprise-edition- virus_scanning:- href: https://www.openproject.org/enterprise-edition- sso_auth_providers:- href: https://www.openproject.org/enterprise-edition- ldap_groups:- href: https://www.openproject.org/enterprise-edition- team_planner:- href: https://www.openproject.org/enterprise-edition- placeholder_users:- href: https://www.openproject.org/enterprise-edition- one_drive_sharepoint_file_storage:- href: https://www.openproject.org/enterprise-editionsysadmin_docs:saml:href: https://www.openproject.org/docs/system-admin-guide/authentication/saml/diff --git a/lookbook/docs/patterns/18-enterprise-components.md.erb b/lookbook/docs/patterns/18-enterprise-components.md.erbindex 9d148033091..951550ef8cd 100644--- a/lookbook/docs/patterns/18-enterprise-components.md.erb+++ b/lookbook/docs/patterns/18-enterprise-components.md.erb@@ -41,9 +41,11 @@ for the upsale translation keys.**docs/static_links.yml**Every feature has a "More information" link going to the website, an enterprise landing page, or a documentation page.-You need to add a link to the [`docs/static_links.yml`](https://github.com/opf/openproject/blob/dev/config/static_links.yml)+If you want to link to a specific page, add a link to the [`docs/static_links.yml`](https://github.com/opf/openproject/blob/dev/config/static_links.yml)file under the `enterprise_features` section.+If none is provided, the link will go to the enterprise landing page.+## Full-page upsale pagesUse when: You have a feature video / image and a full page to fill