summaryrefslogtreecommitdiff
path: root/app/views/projects/environments/index.html.haml
blob: bfd8a11ce931bff035f33eed20d3343c2665277c (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
- @no_container = true
- page_title "Environments"
= render "projects/pipelines/head"

%div{ class: (container_class) }
  - if can?(current_user, :create_environment, @project) && !@environments.blank?
    .top-area
      .nav-controls
        = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
          New environment

  - if @environments.blank?
    .blank-state.blank-state-no-icon
      %h2.blank-state-title
        You don't have any environments right now.
      %p.blank-state-text
        Environments are places where code gets deployed, such as staging or production.
      = link_to "Read more", help_page_path("ci", "environments"), class: "btn btn-success"
  - else
    .table-holder
      %table.table.environments
        %tbody
          %th Environment
          %th Last deployment
          %th Date
        = render @environments