2016-06-10 17:36:54 -04:00
|
|
|
- @no_container = true
|
2017-08-17 05:42:04 -04:00
|
|
|
- add_to_breadcrumbs "Environments", project_environments_path(@project)
|
|
|
|
- breadcrumb_title @environment.name
|
2016-04-29 09:14:38 -04:00
|
|
|
- page_title "Environments"
|
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2017-06-06 18:38:39 -04:00
|
|
|
.row.top-area.adjust
|
2017-03-14 13:35:16 -04:00
|
|
|
.col-md-7
|
2017-01-31 05:40:24 -05:00
|
|
|
%h3.page-title= @environment.name
|
2017-03-14 13:35:16 -04:00
|
|
|
.col-md-5
|
2016-06-10 18:15:53 -04:00
|
|
|
.nav-controls
|
2016-12-14 19:59:04 -05:00
|
|
|
= render 'projects/environments/terminal_button', environment: @environment
|
2016-10-17 15:06:10 -04:00
|
|
|
= render 'projects/environments/external_url', environment: @environment
|
2017-04-06 16:44:21 -04:00
|
|
|
= render 'projects/environments/metrics_button', environment: @environment
|
2016-06-14 12:34:48 -04:00
|
|
|
- if can?(current_user, :update_environment, @environment)
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Edit', edit_project_environment_path(@project, @environment), class: 'btn'
|
2017-05-31 05:07:12 -04:00
|
|
|
- if can?(current_user, :stop_environment, @environment)
|
2017-06-29 13:06:35 -04:00
|
|
|
= 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-04-29 09:14:38 -04:00
|
|
|
|
2017-03-08 06:14:28 -05:00
|
|
|
.environments-container
|
2016-10-06 06:52:54 -04:00
|
|
|
- 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-06-07 21:15:40 -04:00
|
|
|
.ci-table.environments{ role: 'grid' }
|
2017-06-06 18:38:39 -04:00
|
|
|
.gl-responsive-table-row.table-row-header{ role: 'row' }
|
2017-06-07 21:15:40 -04:00
|
|
|
.table-section.section-10{ role: 'columnheader' } ID
|
2017-06-26 10:52:31 -04:00
|
|
|
.table-section.section-30{ role: 'columnheader' } Commit
|
|
|
|
.table-section.section-25{ role: 'columnheader' } Job
|
2017-06-07 21:15:40 -04:00
|
|
|
.table-section.section-15{ role: 'columnheader' } Created
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-10-06 06:52:54 -04:00
|
|
|
= render @deployments
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-10-06 06:52:54 -04:00
|
|
|
= paginate @deployments, theme: 'gitlab'
|