show.html.haml 940 字节
Newer Older
1
- @no_container = true
K
Kamil Trzcinski 已提交
2
- page_title "Environments"
3
= render "projects/pipelines/head"
K
Kamil Trzcinski 已提交
4

5
%div{ class: (container_class) }
K
Kamil Trzcinski 已提交
6 7
  .top-area
    .col-md-9
8
      %h3.page-title= @environment.name.titleize
K
Kamil Trzcinski 已提交
9 10 11

    .col-md-3
      .nav-controls
K
Kamil Trzcinski 已提交
12
        - if can?(current_user, :update_environment, @environment)
K
Kamil Trzcinski 已提交
13
          = 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
K
Kamil Trzcinski 已提交
14

P
Phil Hughes 已提交
15
  - if @deployments.blank?
16
    %ul.content-list.environments
P
Phil Hughes 已提交
17 18 19 20 21
      %li.nothing-here-block
        No deployments for
        %strong= @environment.name
  - else
    .table-holder
22
      %table.table.environments
P
Phil Hughes 已提交
23 24 25 26 27 28 29
        %thead
          %tr
            %th ID
            %th Commit
            %th Build
            %th Date
            %th
K
Kamil Trzcinski 已提交
30

P
Phil Hughes 已提交
31
        = render @deployments
K
Kamil Trzcinski 已提交
32

P
Phil Hughes 已提交
33
    = paginate @deployments, theme: 'gitlab'