Expose scope to view in ClustersController#index
This commit is contained in:
parent
18967d6894
commit
6f72039007
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue