diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 88c68fdf7..a591e6b45 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -10,7 +10,6 @@ class ProjectsController < ApplicationController delete_samples samples_index) before_action :load_projects_tree, only: %i(sidebar show samples archive experiment_archive) - before_action :load_archive_vars, only: :archive before_action :check_view_permissions, only: %i(show reports notifications samples experiment_archive samples_index) @@ -82,10 +81,6 @@ class ProjectsController < ApplicationController end end - def archive - index - end - def new @project = Project.new end @@ -319,15 +314,6 @@ class ProjectsController < ApplicationController end end - def load_archive_vars - if current_user.teams.any? - @archived_projects_by_teams = - current_user.projects_by_teams(@current_team.id, @current_sort, true) - else - @archived_projects_by_teams = [] - end - end - def check_view_permissions render_403 unless can_read_project?(@project) end diff --git a/app/views/projects/archive.html.erb b/app/views/projects/archive.html.erb deleted file mode 100644 index 03753fd4e..000000000 --- a/app/views/projects/archive.html.erb +++ /dev/null @@ -1,54 +0,0 @@ -<% provide(:head_title, t("projects.archive.head_title")) %> -<%= render partial: "shared/sidebar", locals: { page: 'project' } %> -<%= render partial: "shared/secondary_navigation" %> - -