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-06-10 18:15:53 -04:00
|
|
|
.top-area
|
|
|
|
.col-md-9
|
2016-07-18 08:56:22 -04:00
|
|
|
%h3.page-title= @environment.name.capitalize
|
2016-06-10 18:15:53 -04:00
|
|
|
.col-md-3
|
|
|
|
.nav-controls
|
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-04 16:33:50 -04:00
|
|
|
/ TODO: Confirm if the method is :delete
|
|
|
|
= link_to 'Close', namespace_project_environment_path(@project.namespace, @project, @environment), data: { confirm: 'Are you sure you want to delete this environment?' }, class: 'btn btn-danger', method: :delete
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-06-13 10:00:51 -04:00
|
|
|
- if @deployments.blank?
|
2016-06-21 04:54:15 -04:00
|
|
|
.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.
|
2016-05-16 18:06:26 -04:00
|
|
|
= link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success"
|
2016-06-13 10:00:51 -04:00
|
|
|
- else
|
|
|
|
.table-holder
|
2016-08-05 15:54:17 -04:00
|
|
|
%table.table.builds.environments
|
2016-06-13 10:00:51 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th ID
|
|
|
|
%th Commit
|
|
|
|
%th Build
|
2016-08-05 15:54:17 -04:00
|
|
|
%th
|
2016-10-04 16:26:33 -04:00
|
|
|
%th.hidden-xs
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-06-13 10:00:51 -04:00
|
|
|
= render @deployments
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-06-13 10:00:51 -04:00
|
|
|
= paginate @deployments, theme: 'gitlab'
|