diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-11-28 14:24:50 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-11-28 14:39:18 +0100 |
commit | 6f720390073beef93c95af5e45475421beb03b07 (patch) | |
tree | 4d48a20da7cb1718836fddf40a89c5a0d945cdcf | |
parent | 18967d689402d6c3c2a36c844fb90aa051a69cc1 (diff) | |
download | gitlab-ce-6f720390073beef93c95af5e45475421beb03b07.tar.gz |
Expose scope to view in ClustersController#index
-rw-r--r-- | app/controllers/projects/clusters_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb index 68dc3f5c7ea..078c1f62177 100644 --- a/app/controllers/projects/clusters_controller.rb +++ b/app/controllers/projects/clusters_controller.rb @@ -9,6 +9,7 @@ class Projects::ClustersController < Projects::ApplicationController def index @clusters = Kaminari.paginate_array(@clusters).page(params[:page]).per(20) + @scope = params[:scope] @active_count = project.clusters.enabled.count @inactive_count = project.clusters.disabled.count @all_count = @active_count + @inactive_count |