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

Remove unused route and its template

Henriette Darge1acc2b837936
diff --git a/modules/bim/app/controllers/bim/bcf/issues_controller.rb b/modules/bim/app/controllers/bim/bcf/issues_controller.rb
index 6ae7a6681fa..b9cb9066c73 100644
--- a/modules/bim/app/controllers/bim/bcf/issues_controller.rb
+++ b/modules/bim/app/controllers/bim/bcf/issues_controller.rb
@@ -46,10 +46,6 @@ module Bim
def upload; end
- def index
- redirect_to action: :upload
- end
-
def prepare_import
render_next
rescue StandardError => e
diff --git a/modules/bim/app/views/bim/bcf/issues/index.html.erb b/modules/bim/app/views/bim/bcf/issues/index.html.erb
deleted file mode 100644
index 7001d48e0dd..00000000000
--- a/modules/bim/app/views/bim/bcf/issues/index.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<link rel="stylesheet" href="/highlighting/styles.css" />
-
-<%= toolbar title: t('bcf.issues'), html: {class: '-with-dropdown'} do %>
- <li class="toolbar-item drop-down">
-
- </li>
- <li class="toolbar-item">
- <%= link_to({ action: 'upload' },
- title: I18n.t(:label_import),
- class: 'button import-bcf-button') do %>
- <%= op_icon('button--icon icon-import') %>
- <span class="button--text"><%= t(:label_import) %></span>
- <% end %>
- </li>
- <li class="toolbar-item">
- <% query = { f: ['bcfIssueAssociated', '=', ['t']] } %>
- <%= link_to(project_work_packages_with_query_path(@project, query, format: :bcf),
- title: t('bcf.bcf_xml.export'),
- class: 'button export-bcf-button') do %>
- <%= op_icon('button--icon icon-export') %>
- <span class="button--text"><%= t('bcf.bcf_xml.export') %></span>
- <% end %>
- </li>
-<% end %>
-
-<%= render partial: 'render_issues', locals: { issues: @issues } %>
-
-<%= pagination_links_full @issues %>
diff --git a/modules/bim/config/routes.rb b/modules/bim/config/routes.rb
index 18ced9377ee..b6e8c749e3a 100644
--- a/modules/bim/config/routes.rb
+++ b/modules/bim/config/routes.rb
@@ -33,7 +33,7 @@ Rails.application.routes.draw do
scope "projects/:project_id", as: "project" do
get "bcf/menu" => "bim/menus#show"
- resources :issues, controller: "bim/bcf/issues" do
+ resources :issues, controller: "bim/bcf/issues", except: :index do
get :upload, action: :upload, on: :collection
post :prepare_import, action: :prepare_import, on: :collection
post :configure_import, action: :configure_import, on: :collection