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

24 lines
656 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-13 10:00:51 -04:00
- if @environments.blank?
%ul.content-list.environments
%li.nothing-here-block
No environments to show
- else
.table-holder
%table.table.environments
2016-06-13 10:00:51 -04:00
%tbody
%th Environment
%th Last deployment
%th Date
2016-06-14 12:34:48 -04:00
= render @environments