Commit b60e8309 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Kamil Trzcinski

Adds variables to controller

parent 10ea7602
...@@ -6,7 +6,12 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -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
......
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