2019-02-15 15:39:39 +05:30
|
|
|
- page_title _("Environments")
|
2022-04-04 11:22:00 +05:30
|
|
|
- add_page_specific_style 'page_bundles/environments'
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2022-05-07 20:08:51 +05:30
|
|
|
#environments-table{ data: { endpoint: project_environments_path(@project, format: :json),
|
|
|
|
"can-read-environment" => can?(current_user, :read_environment, @project).to_s,
|
|
|
|
"can-create-environment" => can?(current_user, :create_environment, @project).to_s,
|
|
|
|
"new-environment-path" => new_project_environment_path(@project),
|
|
|
|
"help-page-path" => help_page_path("ci/environments/index.md"),
|
|
|
|
"project-path" => @project.full_path,
|
|
|
|
"project-id" => @project.id,
|
|
|
|
"default-branch-name" => @project.default_branch_or_main } }
|