debian-mirror-gitlab/app/views/projects/environments/index.html.haml

34 lines
1.1 KiB
Text
Raw Normal View History

- @no_container = true
- page_title "Environments"
= render "projects/pipelines/head"
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
2016-06-22 15:30:34 +05:30
- 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?
2016-06-22 15:30:34 +05:30
.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
2016-08-24 12:49:21 +05:30
= link_to "Read more about environments", help_page_path("ci/environments")
2016-06-22 15:30:34 +05:30
- 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
2016-09-13 17:45:13 +05:30
%table.table.builds.environments
%tbody
%th Environment
2016-09-13 17:45:13 +05:30
%th Last Deployment
%th Commit
%th
2016-08-24 12:49:21 +05:30
%th
= render @environments