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
Rename gantt charts and place behind work packages
Oliver Güntherdae8e52ac7e0
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex c7cc9e2a445..8e8f58bbc01 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1947,8 +1947,8 @@ en:label_follows: "follows"label_force_user_language_to_default: "Set language of users having a non allowed language to default"label_form_configuration: "Form configuration"- label_gantt: "Gantt"label_gantt_chart: "Gantt chart"+ label_gantt_chart_plural: "Gantt charts"label_general: "General"label_generate_key: "Generate a key"label_git_path: "Path to .git directory"diff --git a/modules/calendar/lib/open_project/calendar/engine.rb b/modules/calendar/lib/open_project/calendar/engine.rbindex 2ccc919e92a..fe452aa1290 100644--- a/modules/calendar/lib/open_project/calendar/engine.rb+++ b/modules/calendar/lib/open_project/calendar/engine.rb@@ -54,7 +54,7 @@ module OpenProject::Calendarcontext: :modules,caption: :label_calendar_plural,icon: 'calendar',- after: :work_packages,+ after: :gantt,if: should_rendermenu :global_menu,@@ -62,7 +62,7 @@ module OpenProject::Calendar{ controller: '/calendar/calendars', action: 'index', project_id: nil },caption: :label_calendar_plural,icon: 'calendar',- after: :work_packages,+ after: :gantt,if: should_rendermenu :project_menu,@@ -70,7 +70,7 @@ module OpenProject::Calendar{ controller: '/calendar/calendars', action: 'index' },caption: :label_calendar_plural,icon: 'calendar',- after: :work_packages+ after: :ganttmenu :project_menu,:calendar_menu,diff --git a/modules/gantt/app/views/gantt/gantt/index.html.erb b/modules/gantt/app/views/gantt/gantt/index.html.erbindex d9dd2eac7a5..1a1c31d29a7 100644--- a/modules/gantt/app/views/gantt/gantt/index.html.erb+++ b/modules/gantt/app/views/gantt/gantt/index.html.erb@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% html_title(t('label_gantt')) -%>+<% html_title(t('label_gantt_chart_plural')) -%><%= call_hook(:view_work_packages_index_bottom, { project: project, query: query }) %><% content_for :header_tags do %>- <%= auto_discovery_link_tag(:atom, {query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: t(:label_gantt)) %>+ <%= auto_discovery_link_tag(:atom, { query_id: query, format: 'atom', page: nil, key: User.current.rss_key }, title: t(:label_gantt_chart_plural)) %><%= auto_discovery_link_tag(:atom, {controller: '/journals', action: 'index', query_id: query, format: 'atom', page: nil, key: User.current.rss_key}, title: t(:label_changes_details)) %><% end %>diff --git a/modules/gantt/lib/open_project/gantt/engine.rb b/modules/gantt/lib/open_project/gantt/engine.rbindex adf1e882750..384b5379b0b 100644--- a/modules/gantt/lib/open_project/gantt/engine.rb+++ b/modules/gantt/lib/open_project/gantt/engine.rb@@ -60,7 +60,7 @@ module OpenProject::Ganttmenu :global_menu,:gantt,{ controller: '/gantt/gantt', action: 'index', project_id: nil },- caption: :label_gantt,+ caption: :label_gantt_chart_plural,after: :work_packages,icon: 'view-timeline',if: should_render_global_menu_item@@ -71,13 +71,13 @@ module OpenProject::Ganttparent: :gantt,partial: 'gantt/menus/menu',last: true,- caption: :label_gantt_chart,+ caption: :label_gantt_chart_plural,if: should_render_global_menu_itemmenu :project_menu,:gantt,{ controller: '/gantt/gantt', action: 'index' },- caption: :label_gantt,+ caption: :label_gantt_chart_plural,after: :work_packages,if: ->(project) { should_render_project_menu.call(project) },icon: 'view-timeline',@@ -91,13 +91,13 @@ module OpenProject::Ganttparent: :gantt,partial: 'gantt/menus/menu',last: true,- caption: :label_gantt_chart,+ caption: :label_gantt_chart_plural,if: ->(project) { should_render_project_menu.call(project) }menu :top_menu,:gantt,{ controller: '/gantt/gantt', action: 'index', project_id: nil },- caption: :label_gantt,+ caption: :label_gantt_chart_plural,after: :work_packages,icon: 'view-timeline',if: should_render_global_menu_item