diff options
Diffstat (limited to 'app/views/projects/environments/index.html.haml')
-rw-r--r-- | app/views/projects/environments/index.html.haml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/app/views/projects/environments/index.html.haml b/app/views/projects/environments/index.html.haml index ae9e77e7d89..a6dd34653ab 100644 --- a/app/views/projects/environments/index.html.haml +++ b/app/views/projects/environments/index.html.haml @@ -2,17 +2,25 @@ - page_title "Environments" = render "projects/pipelines/head" -%div{ class: (container_class) } - - if can?(current_user, :create_environment, @project) +%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? - %ul.content-list.environments - %li.nothing-here-block - No environments to show + .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. + %br + = succeed "." do + = link_to "Read more about environments", help_page_path("ci/environments") + - if can?(current_user, :create_environment, @project) + = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do + New environment - else .table-holder %table.table.environments @@ -20,4 +28,5 @@ %th Environment %th Last deployment %th Date + %th = render @environments |