summaryrefslogtreecommitdiff
path: root/app/controllers/admin/projects_controller.rb
diff options
context:
space:
mode:
authorArtem Sidorenko <artem.sidorenko@telekom.de>2015-08-10 19:42:09 +0200
committerArtem Sidorenko <artem.sidorenko@telekom.de>2015-08-19 13:46:59 +0200
commit3ebbed25f0538f170fdf64a3ca34bc1d34b4836b (patch)
treef4657154a288b6fb81570ca7a4d98351df7a43dd /app/controllers/admin/projects_controller.rb
parent3659d3b5c6eb645756b3df79a22471f8695f133b (diff)
downloadgitlab-ce-3ebbed25f0538f170fdf64a3ca34bc1d34b4836b.tar.gz
Allow listing of archived projects
Resolves #9285
Diffstat (limited to 'app/controllers/admin/projects_controller.rb')
-rw-r--r--app/controllers/admin/projects_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb
index da5f5bb83fa..ae1de06b983 100644
--- a/app/controllers/admin/projects_controller.rb
+++ b/app/controllers/admin/projects_controller.rb
@@ -9,6 +9,7 @@ class Admin::ProjectsController < Admin::ApplicationController
@projects = @projects.where("visibility_level IN (?)", params[:visibility_levels]) if params[:visibility_levels].present?
@projects = @projects.with_push if params[:with_push].present?
@projects = @projects.abandoned if params[:abandoned].present?
+ @projects = @projects.non_archived unless params[:with_archived].present?
@projects = @projects.search(params[:name]) if params[:name].present?
@projects = @projects.sort(@sort = params[:sort])
@projects = @projects.includes(:namespace).order("namespaces.path, projects.name ASC").page(params[:page]).per(PER_PAGE)