2016-06-10 17:36:54 -04:00
|
|
|
- @no_container = true
|
2016-04-29 09:14:38 -04:00
|
|
|
- page_title "Environments"
|
2016-06-10 17:36:54 -04:00
|
|
|
= render "projects/pipelines/head"
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-10-14 08:15:29 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
2016-10-19 05:06:03 -04:00
|
|
|
= page_specific_javascript_tag("environments/environments_bundle.js")
|
2016-11-10 10:43:38 -05:00
|
|
|
|
2016-11-16 08:12:19 -05:00
|
|
|
#environments-list-view{ data: { environments_data: environments_list_data,
|
|
|
|
"can-create-deployment" => can?(current_user, :create_deployment, @project).to_s,
|
|
|
|
"can-read-environment" => can?(current_user, :read_environment, @project).to_s,
|
|
|
|
"can-create-environment" => can?(current_user, :create_environment, @project).to_s,
|
2016-11-10 10:43:38 -05:00
|
|
|
"project-environments-path" => project_environments_path(@project),
|
2016-11-10 13:58:35 -05:00
|
|
|
"project-stopped-environments-path" => project_environments_path(@project, scope: :stopped),
|
2016-11-10 10:43:38 -05:00
|
|
|
"new-environment-path" => new_namespace_project_environment_path(@project.namespace, @project),
|
2016-11-18 10:44:21 -05:00
|
|
|
"help-page-path" => help_page_path("ci/environments"),
|
2016-12-08 06:42:56 -05:00
|
|
|
"css-class" => container_class,
|
|
|
|
"commit-icon-svg" => custom_icon("icon_commit"),
|
|
|
|
"play-icon-svg" => custom_icon("icon_play")}}
|