Adds variables to controller
This commit is contained in:
parent
10ea760251
commit
b60e8309c5
1 changed files with 5 additions and 0 deletions
|
@ -6,7 +6,12 @@ class Projects::EnvironmentsController < Projects::ApplicationController
|
||||||
before_action :environment, only: [:show, :edit, :update, :destroy]
|
before_action :environment, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@scope = params[:scope]
|
||||||
@environments = project.environments
|
@environments = project.environments
|
||||||
|
|
||||||
|
# TODO: fix the values of this vars to show the correct results
|
||||||
|
@available_environments_count = project.environments.count
|
||||||
|
@stopped_environments_count = project.environments.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
Loading…
Reference in a new issue