BigW Consortium Gitlab

show.html.haml 1.67 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 }
6
  .top-area.adjust
Kamil Trzcinski committed
7
    .col-md-9
8
      %h3.page-title= @environment.name
Kamil Trzcinski committed
9 10
    .col-md-3
      .nav-controls
11
        = render 'projects/environments/metrics_button', environment: @environment
12
        = render 'projects/environments/terminal_button', environment: @environment
13
        = render 'projects/environments/external_url', environment: @environment
14
        - if can?(current_user, :update_environment, @environment)
15
          = link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn'
Kamil Trzcinski committed
16
        - if can?(current_user, :create_deployment, @environment) && @environment.can_stop?
17
          = 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
Kamil Trzcinski committed
18

19 20 21 22 23 24 25 26 27 28 29 30
  .deployments-container
    - 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
31
        %table.table.ci-table.environments
32 33 34 35
          %thead
            %tr
              %th ID
              %th Commit
Filipa Lacerda committed
36
              %th Job
37
              %th Created
38
              %th.hidden-xs
Kamil Trzcinski committed
39

40
          = render @deployments
Kamil Trzcinski committed
41

42
      = paginate @deployments, theme: 'gitlab'