2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
|
|
|
- page_title "Environments"
|
|
|
|
= render "projects/pipelines/head"
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2017-09-10 17:25:29 +05:30
|
|
|
.row.top-area.adjust
|
2017-08-17 22:00:37 +05:30
|
|
|
.col-md-7
|
|
|
|
%h3.page-title= @environment.name
|
|
|
|
.col-md-5
|
2016-06-16 23:09:34 +05:30
|
|
|
.nav-controls
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'projects/environments/terminal_button', environment: @environment
|
2016-11-03 12:29:30 +05:30
|
|
|
= render 'projects/environments/external_url', environment: @environment
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'projects/environments/metrics_button', environment: @environment
|
2016-06-16 23:09:34 +05:30
|
|
|
- if can?(current_user, :update_environment, @environment)
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to 'Edit', edit_project_environment_path(@project, @environment), class: 'btn'
|
2017-08-17 22:00:37 +05:30
|
|
|
- if can?(current_user, :stop_environment, @environment)
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to 'Stop', stop_project_environment_path(@project, @environment), data: { confirm: 'Are you sure you want to stop this environment?' }, class: 'btn btn-danger', method: :post
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.environments-container
|
2016-11-03 12:29:30 +05:30
|
|
|
- if @deployments.blank?
|
|
|
|
.blank-state.blank-state-no-icon
|
|
|
|
%h2.blank-state-title
|
|
|
|
You don't have any deployments right now.
|
|
|
|
%p.blank-state-text
|
|
|
|
Define environments in the deploy stage(s) in
|
|
|
|
%code .gitlab-ci.yml
|
|
|
|
to track deployments here.
|
|
|
|
= link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success"
|
|
|
|
- else
|
|
|
|
.table-holder
|
2017-09-10 17:25:29 +05:30
|
|
|
.ci-table.environments{ role: 'grid' }
|
|
|
|
.gl-responsive-table-row.table-row-header{ role: 'row' }
|
|
|
|
.table-section.section-10{ role: 'columnheader' } ID
|
|
|
|
.table-section.section-30{ role: 'columnheader' } Commit
|
|
|
|
.table-section.section-25{ role: 'columnheader' } Job
|
|
|
|
.table-section.section-15{ role: 'columnheader' } Created
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
= render @deployments
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
= paginate @deployments, theme: 'gitlab'
|