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-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-10-18 05:22:22 -04:00
|
|
|
.top-area.adjust
|
2016-06-10 18:15:53 -04:00
|
|
|
.col-md-9
|
2017-01-31 05:40:24 -05:00
|
|
|
%h3.page-title= @environment.name
|
2016-06-10 18:15:53 -04:00
|
|
|
.col-md-3
|
|
|
|
.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
|
2016-06-14 12:34:48 -04:00
|
|
|
- if can?(current_user, :update_environment, @environment)
|
2016-07-26 03:35:47 -04:00
|
|
|
= link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn'
|
2016-10-17 15:06:10 -04:00
|
|
|
- if can?(current_user, :create_deployment, @environment) && @environment.stoppable?
|
|
|
|
= link_to 'Stop', stop_namespace_project_environment_path(@project.namespace, @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
|
|
|
|
2016-10-06 06:52:54 -04:00
|
|
|
.deployments-container
|
|
|
|
- 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
|
2016-10-10 17:21:08 -04:00
|
|
|
%table.table.ci-table.environments
|
2016-10-06 06:52:54 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th ID
|
|
|
|
%th Commit
|
|
|
|
%th Build
|
|
|
|
%th
|
|
|
|
%th.hidden-xs
|
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'
|