summaryrefslogtreecommitdiff
path: root/app/views/projects/environments/show.html.haml
blob: 4c15e2759d6033b60284d406e8b57f414e93a430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- @no_container = true
- page_title "Environments"
= render "projects/pipelines/head"

%div{ class: (container_class) }
  .top-area
    .col-md-9
      %h3.page-title= @environment.name.titleize

    .col-md-3
      .nav-controls
        - if can?(current_user, :update_environment, @environment)
          = 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

  - 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.environments
        %thead
          %tr
            %th ID
            %th Commit
            %th Build
            %th Date
            %th

        = render @deployments

    = paginate @deployments, theme: 'gitlab'