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
Merge branch 'dev' into implementation/62103-update-the-ui-component-to-be-able-to-render-the-groups-with-statuses
Eric Schubert1edfe91ccbc5
diff --cc app/components/enterprise_edition/upsale_buttons_component.rbindex 00000000000,4369e4adb45..2e7f427debemode 000000,100644..100644--- a/app/components/enterprise_edition/upsale_buttons_component.rb+++ b/app/components/enterprise_edition/upsale_buttons_component.rb@@@ -1,0 -1,96 +1,96 @@@+ # frozen_string_literal: true++ # -- copyright+ # OpenProject is an open source project management software.+ # Copyright (C) the OpenProject GmbH+ #+ # This program is free software; you can redistribute it and/or+ # modify it under the terms of the GNU General Public License version 3.+ #+ # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+ # Copyright (C) 2006-2013 Jean-Philippe Lang+ # Copyright (C) 2010-2013 the ChiliProject Team+ #+ # This program is free software; you can redistribute it and/or+ # modify it under the terms of the GNU General Public License+ # as published by the Free Software Foundation; either version 2+ # of the License, or (at your option) any later version.+ #+ # This program is distributed in the hope that it will be useful,+ # but WITHOUT ANY WARRANTY; without even the implied warranty of+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ # GNU General Public License for more details.+ #+ # You should have received a copy of the GNU General Public License+ # along with this program; if not, write to the Free Software+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+ #+ # See COPYRIGHT and LICENSE files for more details.+ # ++++ module EnterpriseEdition+ class UpsaleButtonsComponent < ApplicationComponent+ include OpPrimer::ComponentHelpers++ # @param feature_key [Symbol, NilClass] The key of the feature to show the banner for.+ # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>+ def initialize(feature_key, **system_arguments)+ super++ @system_arguments = system_arguments+ @system_arguments[:align_items] ||= :center+ @feature_key = feature_key+ end++ def call+ flex_layout(**@system_arguments) do |flex|+ buttons.each_with_index do |button, i|+ flex.with_column(ml: (i == 0 ? 0 : 2)) do+ button+ end+ end+ end+ end++ private++ attr_reader :feature_key++ def buttons+ [+ free_trial_button,+ upgrade_now_button,+ more_info_button+ ].compact+ end++ def free_trial_button+ return if EnterpriseToken.active?++ helpers.angular_component_tag("opce-free-trial-button")+ end++ # Allow providing a custom upgrade now button+ def upgrade_now_button+ nil+ end++ def more_info_button+ render(Primer::Beta::Link.new(href: enterprise_link)) do |link|+ link.with_trailing_visual_icon(icon: "link-external")+ link_title+ end+ end++ def link_title- I18n.t("ee.upsale.#{feature_key}.link_title", default: I18n.t("ee.upsale.link_title"))++ I18n.t("ee.upsale.#{feature_key}.link_title", default: I18n.t(:label_more_information))+ end++ def enterprise_link+ href_value = OpenProject::Static::Links.links.dig(:enterprise_features, feature_key, :href)+ default_value = OpenProject::Static::Links.links.dig(:enterprise_features, :default, :href)++ href_value || default_value+ end+ end+ enddiff --cc config/locales/en.ymlindex 3b854135842,f7ec3f07d26..71598b8e5de--- a/config/locales/en.yml+++ b/config/locales/en.yml@@@ -1034,11 -1012,17 +1012,16 @@@ enproject_custom_field:is_required: "Required for all projects"custom_field_section: Section- project/life_cycle_step:+ project/phase:+ date_range: "Date range"definition: "Definition"- project/life_cycle_step_definition:- date_range: "Date range"+ project/phase_definition:name: "Name"color: "Color"+ start_gate: "Start phase gate"+ start_gate_name: "Start phase gate name"+ finish_gate: "Finish phase gate"+ finish_gate_name: "Finish phase gate name"query:sums: "Sums"columns: "Columns"@@@ -2068,17 -2027,80 +2026,80 @@@direction: ltree:+ features:+ 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+ date_alerts: Date Alerts+ define_custom_style: Custom theme and logo+ edit_attribute_groups: Edit Attribute Groups+ gantt_pdf_export: Gantt PDF Export+ grid_widget_wp_graph: Grid Widget Work Package Graph+ ldap_groups: LDAP users and group sync+ one_drive_sharepoint_file_storage: OneDrive/SharePoint File Storage+ placeholder_users: Placeholder Users+ project_list_sharing: Project List Sharing+ readonly_work_packages: Readonly Work Packages+ sso_auth_providers: Single sign-on+ team_planner_view: Team Planner View+ two_factor_authentication: 2FA Authentication+ virus_scanning: Antivirus Scanning+ work_package_query_relation_columns: Work Package Query Relation Columns+ work_package_sharing: Share work packages with external users+ work_package_subject_generation: Work Package Subject Generationupsale:title: "Enterprise add-on"+ automatic_subject_generation:+ plan_title: "Enterprise %{plan} add-on"+ plan_name: "%{plan} enterprise plan"+ plan_text_html: "Available only through the %{plan_name}."- link_title: "More information"+ hide_banner: "Hide this banner"+ baseline_comparison:+ description: Highlight changes made to this list since any point in the past.+ work_package_subject_generation:description: "Create automatically generated subjects using referenced attributes and text."customize_life_cycle:- description: "Create and organize different project stages and gates than the ones provided by PM2 project cycle planning."- form_configuration:- description: "Customize the form configuration with these additional add-ons:"- add_groups: "Add new attribute groups"- rename_groups: "Rename attributes groups"-+ 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:+ groups: "Add new attribute groups"+ rename: "Rename attribute groups"+ related: "Add a table of related work packages"+ readonly_work_packages:+ description: "Mark work packages as read-only for specific statuses."+ custom_field_hierarchies:+ description: "Hierarchy custom fields allow organizing hierarchical structures in work packages by making use of multi-level select lists."+ date_alerts:+ description: "With date alerts, you will be notified of upcoming start or finish dates so that you never miss or forget an important deadline."+ work_package_sharing:+ description: "Share work packages with users who are not members of the project."+ define_custom_style:+ title: "Custom color theme and logo"+ more_info: "Note: the used logo will be publicly accessible."+ description: Customize your OpenProject installation with your own logo and colors.+ custom_actions:+ title: "Custom actions"+ description: "Custom actions are one-click shortcuts to a set of pre-defined actions that you can make available on certain work packages based on status, role, type or project."+ virus_scanning:+ description: "Ensure uploaded files in OpenProject are scanned for viruses before being accessible by other users."+ placeholder_users:+ title: Placeholder users+ description: >+ Placeholder users are a way to assign work packages to users who are not part of your project.+ They can be useful in a range of scenarios; for example, if you need to track tasks for a resource that is not yet named or available,+ or if you don’t want to give that person access to OpenProject but still want to track tasks assigned to them.+ comments_with_restricted_visibility:+ title: "For your eyes only"+ description: "Restricted-visibilty comments allow an internal team to communicate amongst themselves privately. These are only visible to certain project roles and will never be visible publicly. Available only through the enterprise professional plan."enumeration_activities: "Time tracking activities"enumeration_work_package_priorities: "Work package priorities"enumeration_reported_project_statuses: "Reported project status"