gitlab-org--gitlab-foss/app/views/projects/environments/index.html.haml

34 lines
1.1 KiB
Text
Raw Normal View History

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 }
- 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?
.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")
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
%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
%th
%th
2016-06-14 12:34:48 -04:00
= render @environments