Commit 6f720390 authored by Matija Čupić's avatar Matija Čupić

Expose scope to view in ClustersController#index

parent 18967d68
...@@ -9,6 +9,7 @@ class Projects::ClustersController < Projects::ApplicationController ...@@ -9,6 +9,7 @@ class Projects::ClustersController < Projects::ApplicationController
def index def index
@clusters = Kaminari.paginate_array(@clusters).page(params[:page]).per(20) @clusters = Kaminari.paginate_array(@clusters).page(params[:page]).per(20)
@scope = params[:scope]
@active_count = project.clusters.enabled.count @active_count = project.clusters.enabled.count
@inactive_count = project.clusters.disabled.count @inactive_count = project.clusters.disabled.count
@all_count = @active_count + @inactive_count @all_count = @active_count + @inactive_count
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment