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
Remove tab specific content we do not need any more
Henriette Dinger2fa0014b6d44
diff --git a/app/controllers/project_settings_controller.rb b/app/controllers/project_settings_controller.rbindex 5ea01b9e545..3d13d94d262 100644--- a/app/controllers/project_settings_controller.rb+++ b/app/controllers/project_settings_controller.rb@@ -32,8 +32,6 @@ class ProjectSettingsController < ApplicationControllerbefore_action :find_projectbefore_action :authorize- before_action :check_valid_tab- before_action :get_tab_settingsdef show@altered_project = @project@@ -41,58 +39,6 @@ class ProjectSettingsController < ApplicationControllerendprivate-- def settings_info- @altered_project = @project- end-- def settings_custom_fields- @wp_custom_fields = WorkPackageCustomField.order("#{CustomField.table_name}.position")- end-- def settings_repository- @repository = @project.repository || new_repository- end-- def new_repository- return unless params[:scm_vendor]-- service = Scm::RepositoryFactoryService.new(@project, params)- if service.build_temporary- @repository = service.repository- else- logger.error("Cannot create repository for #{params[:scm_vendor]}")- flash[:error] = service.build_error- nil- end- end-- def settings_types- @types = ::Type.all- end-- def check_valid_tab- @selected_tab =- if params[:tab]- helpers.project_settings_tabs.detect { |t| t[:name] == params[:tab] }- else- helpers.project_settings_tabs.first- end-- unless @selected_tab- render_404- end- end-- ##- # Only load the needed elements for the current tab- def get_tab_settings- callback = "settings_#{@selected_tab[:name]}"- if respond_to?(callback, true)- send(callback)- end- end-def find_project@project = Project.find(params[:id])rescue ActiveRecord::RecordNotFounddiff --git a/app/views/project_settings/show.html.erb b/app/views/project_settings/show.html.erbdeleted file mode 100644index 22f9361f621..00000000000--- a/app/views/project_settings/show.html.erb+++ /dev/null@@ -1,29 +0,0 @@-<%#-- copyright-OpenProject is a project management system.-Copyright (C) 2012-2018 the OpenProject Foundation (OPF)--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-2017 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 docs/COPYRIGHT.rdoc for more details.--++#%>-<% html_title(l(:label_project_settings)) -%>diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erbindex 4aefcc51fdf..8e65b6fb157 100644--- a/app/views/projects/_form.html.erb+++ b/app/views/projects/_form.html.erb@@ -45,30 +45,4 @@ See docs/COPYRIGHT.rdoc for more details.</section><% end %>-<% if render_modules %>- <section class="form--section">- <%= render partial: "projects/form/modules", locals: { form: f } %>- </section>-- <%= nonced_javascript_tag 'observeProjectModules();' %>-<% end %>--<% if ((project.module_enabled?('work_package_tracking')) && render_types) %>- <section class="form--section">- <%= render partial: 'projects/form/types',- locals: { f: f, project: project, withControlls: false} %>- </section>-<% end %>--<% if render_custom_fields %>- <section class="form--section">- <%= render partial: 'projects/form/custom_fields',- locals: {- form: f,- project: project,- work_package_custom_fields: @wp_custom_fields- } %>- </section>-<% end %>-<!--[eoform:project]-->diff --git a/config/routes.rb b/config/routes.rbindex 29310f2ecba..fd4fba6cd81 100644--- a/config/routes.rb+++ b/config/routes.rb@@ -183,6 +183,7 @@ OpenProject::Application.routes.draw doconstraints: { coming_from: /(admin|settings)/ }match 'copy_from_(:coming_from)' => 'copy_projects#copy', via: :post, as: :copy,constraints: { coming_from: /(admin|settings)/ }+put :modulesput :custom_fieldsput :archive