2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
|
|
|
- page_title "Environments"
|
|
|
|
= render "projects/pipelines/head"
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- if show_new_nav?
|
|
|
|
- add_to_breadcrumbs("Pipelines", project_pipelines_path(@project))
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_bundle_tag('common_vue')
|
|
|
|
= page_specific_javascript_bundle_tag("environments")
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
#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,
|
|
|
|
"project-environments-path" => project_environments_path(@project),
|
|
|
|
"project-stopped-environments-path" => project_environments_path(@project, scope: :stopped),
|
2017-09-10 17:25:29 +05:30
|
|
|
"new-environment-path" => new_project_environment_path(@project),
|
2017-08-17 22:00:37 +05:30
|
|
|
"help-page-path" => help_page_path("ci/environments"),
|
|
|
|
"css-class" => container_class } }
|