BigW Consortium Gitlab

show.html.haml 1.26 KB
Newer Older
1
- @no_container = true
Kamil Trzcinski committed
2
- page_title "Environments"
3
= render "projects/pipelines/head"
Kamil Trzcinski committed
4

5
%div{ class: container_class }
Kamil Trzcinski committed
6 7
  .top-area
    .col-md-9
8
      %h3.page-title= @environment.name.capitalize
Kamil Trzcinski committed
9 10
    .col-md-3
      .nav-controls
11
        - if can?(current_user, :update_environment, @environment)
12
          = link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn'
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
Kamil Trzcinski committed
14

Phil Hughes committed
15
  - if @deployments.blank?
16 17 18 19 20 21 22
    .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.
23
      = link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success"
Phil Hughes committed
24 25
  - else
    .table-holder
26
      %table.table.builds.environments
Phil Hughes committed
27 28 29 30 31
        %thead
          %tr
            %th ID
            %th Commit
            %th Build
32
            %th
Phil Hughes committed
33
            %th
Kamil Trzcinski committed
34

Phil Hughes committed
35
        = render @deployments
Kamil Trzcinski committed
36

Phil Hughes committed
37
    = paginate @deployments, theme: 'gitlab'