kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.9 KiB
36 lines
1.9 KiB
11 years ago
|
#-- copyright
|
||
11 years ago
|
# OpenProject My Project Page Plugin
|
||
|
#
|
||
|
# Copyright (C) 2011-2014 the OpenProject Foundation (OPF)
|
||
11 years ago
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
11 years ago
|
# 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 doc/COPYRIGHT.md for more details.
|
||
11 years ago
|
#++
|
||
|
|
||
11 years ago
|
# re-write
|
||
|
OpenProject::Application.routes.draw do
|
||
11 years ago
|
# replace the standard overview-page with the my-project-page
|
||
|
# careful: do not over-match the reserved path like /projects/new or /projects/level_list, see http://rubular.com/r/1uoiXyApCB
|
||
|
get 'projects/:id', to: "my_projects_overviews#index" ,
|
||
7 years ago
|
constraints: { format: :html, id: Regexp.new("(?!(#{Project::RESERVED_IDENTIFIERS.join('|')})$)(\\w|-)+") }
|
||
12 years ago
|
|
||
9 years ago
|
get 'my_projects_overview/:id/page_layout', to: "my_projects_overviews#page_layout",
|
||
|
as: :my_projects_overview
|
||
8 years ago
|
post 'my_projects_overview/:id/page_layout/save_changes', to: "my_projects_overviews#save_changes"
|
||
11 years ago
|
post 'my_projects_overview/:id/page_layout/add_block', to: "my_projects_overviews#add_block"
|
||
|
put 'my_projects_overview/:id/page_layout/update_custom_element', to: "my_projects_overviews#update_custom_element"
|
||
8 years ago
|
get 'my_projects_overview/:id/page_layout/render_attachments', to: "my_projects_overviews#render_attachments"
|
||
6 years ago
|
delete 'my_projects_overview/:id/page_layout/destroy_attachment', to: "my_projects_overviews#destroy_attachment"
|
||
13 years ago
|
end
|