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

chore[Op#50748] Cleanup unused views (#14367)

Kabiru Mwenja1bdbdb37fc08
diff --git a/modules/storages/app/views/storages/admin/storages/nextcloud/_edit.html.erb b/modules/storages/app/views/storages/admin/storages/nextcloud/_edit.html.erb
deleted file mode 100644
index 177cd4b5c68..00000000000
--- a/modules/storages/app/views/storages/admin/storages/nextcloud/_edit.html.erb
+++ /dev/null
@@ -1,58 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<%= error_messages_for @storage %>
-
-<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= I18n.t(:label_general) %></legend>
- <div class="form--field -required">
- <%= f.label :provider_type, class: "form--label" do %>
- <%= t(:"storages.label_provider_type") %>
- <% end %>
- <div class="form--field-container -horizontal">
- <span><%= I18n.t("storages.provider_types.#{@storage.short_provider_type}.name") %></span>
- </div>
- </div>
- <div class="form--field -required">
- <%= f.text_field :name,
- required: true,
- placeholder: I18n.t("storages.provider_types.#{@storage.short_provider_type}.name_placeholder"),
- container_class: '-slim' %>
- <span class="form--field-instructions"><%= t('storages.instructions.name') %></span>
- </div>
- <div class="form--field -required" data-storages--storage-form-target="storageUrl">
- <%= f.text_field :host,
- label: t('storages.label_host'),
- type: :url,
- required: true,
- pattern: ".{1,255}",
- placeholder: "https://my-file-storage.com",
- container_class: '-wide' %>
- <span class="form--field-instructions"><%= t('storages.instructions.host') %></span>
- </div>
-</fieldset>
diff --git a/modules/storages/app/views/storages/admin/storages/nextcloud/_oauth_client.html.erb b/modules/storages/app/views/storages/admin/storages/nextcloud/_oauth_client.html.erb
deleted file mode 100644
index 3534e749dc5..00000000000
--- a/modules/storages/app/views/storages/admin/storages/nextcloud/_oauth_client.html.erb
+++ /dev/null
@@ -1,65 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<fieldset class="form--fieldset">
- <div class="form--field -required">
- <%= f.text_field :client_id,
- label: Storages::Admin::LABEL_OAUTH_CLIENT_ID,
- required: true,
- size: 40,
- container_class: '-wide' %>
- <span class="form--field-instructions">
- <%= "#{t("storages.instructions.copy_from")}: " %>
- <%= link_to "#{t("storages.instructions.#{@storage.short_provider_type}.integration")}",
- File.join(@storage.host, "settings/admin/openproject").to_s,
- target: "_blank" %>
- </span>
- </div>
-
- <div class="form--field -required">
- <%= f.text_field :client_secret,
- label: Storages::Admin::LABEL_OAUTH_CLIENT_SECRET,
- required: true,
- size: 40,
- container_class: '-wide' %>
- <span class="form--field-instructions">
- <%= "#{t("storages.instructions.copy_from")}: " %>
- <%= link_to "#{t("storages.instructions.#{@storage.short_provider_type}.integration")}",
- File.join(@storage.host, "settings/admin/openproject").to_s,
- target: "blank" %>
- </span>
- </div>
-</fieldset>
-
-<% if @storage.oauth_client %>
- <%= styled_button_tag t(:button_replace), class: "-highlight -with-icon icon-checkmark" %>
-<% else %>
- <% is_last_step = @storage.provider_type_nextcloud? && @storage.automatic_management_unspecified? %>
- <% label_action = is_last_step ? 'complete' : 'continue' %>
- <%= styled_button_tag t("storages.buttons.save_and_#{label_action}_setup"), class: "-highlight -with-icon icon-checkmark" %>
-<% end %>
diff --git a/modules/storages/app/views/storages/admin/storages/nextcloud/_oauth_client_section.html.erb b/modules/storages/app/views/storages/admin/storages/nextcloud/_oauth_client_section.html.erb
deleted file mode 100644
index 19286720a15..00000000000
--- a/modules/storages/app/views/storages/admin/storages/nextcloud/_oauth_client_section.html.erb
+++ /dev/null
@@ -1,47 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<%= render(AttributeGroups::AttributeGroupComponent.new) do |component| %>
- <% component.with_header(title: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t(:'storages.label_oauth_client_details')}") %>
-
- <% if @storage.oauth_client %>
- <% component.with_attributes([
- { key: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_CLIENT_ID}",
- value: @storage.oauth_client.client_id },
- { key: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_CLIENT_SECRET}",
- value: short_secret(@storage.oauth_client.client_secret) },
- ]) %>
-
- <%= link_to(t("storages.buttons.replace_provider_type_oauth", provider_type: t("storages.provider_types.#{@storage.short_provider_type}.name")),
- new_admin_settings_storage_oauth_client_path(@storage),
- data: { confirm: t(:'storages.confirm_replace_oauth_client') },
- class: 'button -with-icon icon-reload') %>
- <% else %>
- <%= link_to(t("js.label_create"), new_admin_settings_storage_oauth_client_path(@storage), class: 'button -with-icon icon-add') %>
- <% end %>
-<% end %>
diff --git a/modules/storages/app/views/storages/admin/storages/one_drive/_edit.html.erb b/modules/storages/app/views/storages/admin/storages/one_drive/_edit.html.erb
deleted file mode 100644
index 24ba1479602..00000000000
--- a/modules/storages/app/views/storages/admin/storages/one_drive/_edit.html.erb
+++ /dev/null
@@ -1,48 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<%= error_messages_for @storage %>
-
-<fieldset class="form--fieldset">
- <legend class="form--fieldset-legend"><%= I18n.t(:label_general) %></legend>
- <div class="form--field -required">
- <%= f.label :provider_type, class: "form--label" do %>
- <%= t(:"storages.label_provider_type") %>
- <% end %>
- <div class="form--field-container -horizontal">
- <span><%= I18n.t("storages.provider_types.#{@storage.short_provider_type}.name") %></span>
- </div>
- </div>
- <div class="form--field -required">
- <%= f.text_field :name,
- required: true,
- placeholder: I18n.t("storages.provider_types.#{@storage.short_provider_type}.name_placeholder"),
- container_class: '-slim' %>
- <span class="form--field-instructions"><%= t('storages.instructions.name') %></span>
- </div>
-</fieldset>
diff --git a/modules/storages/app/views/storages/admin/storages/one_drive/_oauth_client.html.erb b/modules/storages/app/views/storages/admin/storages/one_drive/_oauth_client.html.erb
deleted file mode 100644
index f007793e962..00000000000
--- a/modules/storages/app/views/storages/admin/storages/one_drive/_oauth_client.html.erb
+++ /dev/null
@@ -1,90 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<% content_controller 'storages--oauth-client-form',
- dynamic: true,
- 'storages--oauth-client-form-client-id-missing-value': t(:"storages.instructions.#{@storage.short_provider_type}.missing_client_id_for_redirect_uri")
-%>
-
-<fieldset class="form--fieldset">
- <div class="form--field -required">
- <%= f.text_field :client_id,
- label: Storages::Admin::LABEL_OAUTH_CLIENT_ID,
- required: true,
- size: 40,
- container_class: '-wide',
- data: {
- 'storages--oauth-client-form-target': "clientId",
- action: 'input->storages--oauth-client-form#setRedirectUriValue'
- } %>
- <span class="form--field-instructions">
- <%= t("storages.instructions.#{@storage.short_provider_type}.oauth_client_id") %>
- </span>
- </div>
-
- <div class="form--field -required">
- <%= f.text_field :client_secret,
- label: Storages::Admin::LABEL_OAUTH_CLIENT_SECRET,
- required: true,
- size: 40,
- container_class: '-wide' %>
- <span class="form--field-instructions">
- <%= t("storages.instructions.#{@storage.short_provider_type}.oauth_client_secret") %>
- </span>
- </div>
-
- <div class="form--field">
- <label class="form--label" for="oauth-client-redirect-uri"><%= Storages::Admin::LABEL_OAUTH_REDIRECT_URI %></label>
- <div class="form--field-container">
- <div class="form--text-field-container -wide">
- <input id="oauth-client-redirect-uri"
- type="text"
- class="form--text-field"
- readonly
- data-storages--oauth-client-form-target="redirectUri">
- </div>
- <div class="form--field-affix">
- <% csp_onclick('this.focus(); this.select();', '#secret') %>
- <copy-to-clipboard click-target=".callback-copy-button"
- clipboard-target="#oauth-client-redirect-uri">
- </copy-to-clipboard>
- <button class="callback-copy-button button -without-button-styling"
- title="<%= t(:button_copy_to_clipboard) %>">
- <%= op_icon('icon-copy') %>
- <span class="hidden-for-sighted"><%= t(:button_copy_to_clipboard) %></span>
- </button>
- </div>
- </div>
- </div>
-</fieldset>
-
-<% if @storage.oauth_client %>
- <%= styled_button_tag t(:button_replace), class: "-highlight -with-icon icon-checkmark" %>
-<% else %>
- <%= styled_button_tag t("storages.buttons.save_and_complete_setup"), class: "-highlight -with-icon icon-checkmark" %>
-<% end %>
diff --git a/modules/storages/app/views/storages/admin/storages/one_drive/_oauth_client_section.html.erb b/modules/storages/app/views/storages/admin/storages/one_drive/_oauth_client_section.html.erb
deleted file mode 100644
index 37472c0d2ef..00000000000
--- a/modules/storages/app/views/storages/admin/storages/one_drive/_oauth_client_section.html.erb
+++ /dev/null
@@ -1,49 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<%= render(AttributeGroups::AttributeGroupComponent.new) do |component| %>
- <% component.with_header(title: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t(:'storages.label_oauth_client_details')}") %>
-
- <% if @storage.oauth_client %>
- <% component.with_attributes([
- { key: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_CLIENT_ID}",
- value: @storage.oauth_client.client_id },
- { key: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_CLIENT_SECRET}",
- value: short_secret(@storage.oauth_client.client_secret) },
- { key: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_REDIRECT_URI}",
- value: @storage.oauth_client.redirect_uri }
- ]) %>
-
- <%= link_to(t("storages.buttons.replace_provider_type_oauth", provider_type: t("storages.provider_types.#{@storage.short_provider_type}.name")),
- new_admin_settings_storage_oauth_client_path(@storage),
- data: { confirm: t(:'storages.confirm_replace_oauth_client') },
- class: 'button -with-icon icon-reload') %>
- <% else %>
- <%= link_to(t("js.label_create"), new_admin_settings_storage_oauth_client_path(@storage), class: 'button -with-icon icon-add') %>
- <% end %>
-<% end %>
diff --git a/modules/storages/app/views/storages/admin/storages/one_drive/edit.html.erb b/modules/storages/app/views/storages/admin/storages/one_drive/edit.html.erb
deleted file mode 100644
index 0aecb02940d..00000000000
--- a/modules/storages/app/views/storages/admin/storages/one_drive/edit.html.erb
+++ /dev/null
@@ -1,64 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-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-2013 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 COPYRIGHT and LICENSE files for more details.
-++#%>
-
-<% html_title t(:label_administration), t("project_module_storages"), @storage.name, "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t("storages.label_information")}" %>
-
-<% local_assigns[:additional_breadcrumb] = [
- link_to(@storage.name, edit_admin_settings_storage_path(@storage)),
- t("storages.label_oauth_breadcrumb.#{@storage.short_provider_type}")
-] %>
-<%= toolbar title: "#{t("storages.provider_types.#{@storage.short_provider_type}.name")} #{t("storages.label_information")}" %>
-
-<%= labelled_tabular_form_for @storage, url: admin_settings_storage_path(@storage), as: :storages_storage do |f| -%>
- <fieldset class="form--fieldset">
- <div class="form--field -required">
- <%= f.text_field :tenant_id,
- label: Storages::Admin::LABEL_TENANT_ID,
- required: true,
- size: 40,
- container_class: '-wide'
- %>
- <span class="form--field-instructions">
- <%= t("storages.instructions.#{@storage.short_provider_type}.tenant_id") %>
- </span>
- </div>
-
- <div class="form--field -required">
- <%= f.text_field :drive_id,
- label: Storages::Admin::LABEL_DRIVE_ID,
- required: true,
- size: 40,
- container_class: '-wide' %>
- <span class="form--field-instructions">
- <%= t("storages.instructions.#{@storage.short_provider_type}.drive_id") %>
- </span>
- </div>
- </fieldset>
-
- <%= styled_button_tag t("storages.buttons.save_and_continue_setup"), class: "-highlight -with-icon icon-checkmark" %>
-<% end %>