summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-11-28 14:24:50 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-11-28 14:39:18 +0100
commit6f720390073beef93c95af5e45475421beb03b07 (patch)
tree4d48a20da7cb1718836fddf40a89c5a0d945cdcf
parent18967d689402d6c3c2a36c844fb90aa051a69cc1 (diff)
downloadgitlab-ce-6f720390073beef93c95af5e45475421beb03b07.tar.gz
Expose scope to view in ClustersController#index
-rw-r--r--app/controllers/projects/clusters_controller.rb1
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