gitlab-org--gitlab-foss/app/views/projects/environments/show.html.haml

38 lines
1.3 KiB
Text
Raw Normal View History

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
%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)
= link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn'
2016-06-15 06:07:06 -04:00
= link_to 'Destroy', 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?
.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"
2016-06-13 10:00:51 -04:00
- else
.table-holder
%table.table.environments
2016-06-13 10:00:51 -04:00
%thead
%tr
%th ID
%th Commit
%th Build
%th Date
%th
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'