2016-06-10 17:36:54 -04:00
|
|
|
- @no_container = true
|
2016-04-29 09:14:38 -04:00
|
|
|
- page_title "Environments"
|
2016-06-10 17:36:54 -04:00
|
|
|
= render "projects/pipelines/head"
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-21 04:54:15 -04:00
|
|
|
- if can?(current_user, :create_environment, @project) && !@environments.blank?
|
2016-06-10 18:15:53 -04:00
|
|
|
.top-area
|
|
|
|
.nav-controls
|
|
|
|
= link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
|
|
|
|
New environment
|
2016-04-29 09:14:38 -04:00
|
|
|
|
2016-06-13 10:00:51 -04:00
|
|
|
- if @environments.blank?
|
2016-06-21 04:54:15 -04:00
|
|
|
.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.
|
2016-06-21 06:12:28 -04:00
|
|
|
%br
|
|
|
|
= succeed "." do
|
2016-05-16 18:06:26 -04:00
|
|
|
= link_to "Read more about environments", help_page_path("ci/environments")
|
2016-06-21 06:52:51 -04:00
|
|
|
- if can?(current_user, :create_environment, @project)
|
|
|
|
= link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
|
|
|
|
New environment
|
2016-06-13 10:00:51 -04:00
|
|
|
- else
|
|
|
|
.table-holder
|
2016-08-05 15:08:39 -04:00
|
|
|
%table.table.builds.environments
|
2016-06-13 10:00:51 -04:00
|
|
|
%tbody
|
|
|
|
%th Environment
|
2016-08-08 12:43:12 -04:00
|
|
|
%th Last Deployment
|
|
|
|
%th Commit
|
2016-08-05 15:08:39 -04:00
|
|
|
%th
|
2016-07-16 19:48:51 -04:00
|
|
|
%th
|
2016-06-14 12:34:48 -04:00
|
|
|
= render @environments
|