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

24 lines
967 B
Text
Raw Normal View History

2016-06-03 14:09:45 -04:00
- @no_container = true
2015-10-14 06:15:03 -04:00
- page_title "Builds"
= render "projects/pipelines/head"
2015-10-14 06:15:03 -04:00
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-06-03 14:09:45 -04:00
.top-area
- build_path_proc = ->(scope) { project_builds_path(@project, scope: scope) }
= render "shared/builds/tabs", build_path_proc: build_path_proc, all_builds: @all_builds, scope: @scope
2016-06-03 14:09:45 -04:00
.nav-controls
- if can?(current_user, :update_build, @project)
- if @all_builds.running_or_pending.any?
= link_to 'Cancel running', cancel_all_namespace_project_builds_path(@project.namespace, @project),
data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
- unless @repository.gitlab_ci_yml
= link_to 'Get started with Builds', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
2016-06-03 14:09:45 -04:00
= link_to ci_lint_path, class: 'btn btn-default' do
%span CI Lint
2016-12-23 04:37:12 -05:00
.content-list.builds-content-list
= render "table", builds: @builds, project: @project