diff options
author | Artem Sidorenko <artem.sidorenko@telekom.de> | 2015-08-10 19:42:09 +0200 |
---|---|---|
committer | Artem Sidorenko <artem.sidorenko@telekom.de> | 2015-08-19 13:46:59 +0200 |
commit | 3ebbed25f0538f170fdf64a3ca34bc1d34b4836b (patch) | |
tree | f4657154a288b6fb81570ca7a4d98351df7a43dd /app/controllers/admin/projects_controller.rb | |
parent | 3659d3b5c6eb645756b3df79a22471f8695f133b (diff) | |
download | gitlab-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.rb | 1 |
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) |