debian-mirror-gitlab/app/views/projects/environments/show.html.haml

43 lines
1.6 KiB
Text
Raw Normal View History

- @no_container = true
- page_title "Environments"
= render "projects/pipelines/head"
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
2016-11-03 12:29:30 +05:30
.top-area.adjust
2017-08-17 22:00:37 +05:30
.col-md-7
%h3.page-title= @environment.name
.col-md-5
.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
- if can?(current_user, :update_environment, @environment)
2016-09-13 17:45:13 +05:30
= link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn'
2017-08-17 22:00:37 +05:30
- if can?(current_user, :stop_environment, @environment)
2016-11-03 12:29:30 +05:30
= 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
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
%table.table.ci-table.environments
%thead
%tr
%th ID
%th Commit
2017-08-17 22:00:37 +05:30
%th Job
%th Created
2016-11-03 12:29:30 +05:30
%th.hidden-xs
2016-11-03 12:29:30 +05:30
= render @deployments
2016-11-03 12:29:30 +05:30
= paginate @deployments, theme: 'gitlab'