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

add gantt export route

as-opb74d35565411
diff --git a/modules/gantt/config/routes.rb b/modules/gantt/config/routes.rb
index 261a2b35b7e..7573debd8bd 100644
--- a/modules/gantt/config/routes.rb
+++ b/modules/gantt/config/routes.rb
@@ -4,6 +4,7 @@ Rails.application.routes.draw do
collection do
# The menu route has to be above the state routes! Otherwise, the menu will be interpreted as another state
get "menu" => "gantt/menus#show"
+ get "/export_dialog" => "work_packages#export_dialog"
# states managed by client-side routing on work_package#index
get "(/*state)" => "gantt/gantt#index", as: ""
@@ -14,6 +15,8 @@ Rails.application.routes.draw do
resources :gantt, controller: "gantt/gantt", only: [:index] do
collection do
+ get "/export_dialog" => "work_packages#export_dialog"
+
# states managed by client-side routing on work_package#index
get "details/*state" => "gantt/gantt#index", as: :details