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

26 lines
752 B
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-10 17:36:54 -04:00
%div{ class: (container_class) }
2016-06-10 18:15:53 -04:00
- if can?(current_user, :create_environment, @project)
.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-10 18:15:53 -04:00
%ul.content-list.environments
2016-06-10 17:36:54 -04:00
- if @environments.blank?
%li
.nothing-here-block No environments to show
- else
.table-holder
2016-06-10 18:15:53 -04:00
%table.table
2016-06-10 17:36:54 -04:00
%tbody
%th Environment
%th Last deployment
%th Date
%th
- @environments.each do |environment|
= render 'environment', environment: environment