Skip to content
Snippets Groups Projects
Commit 21976091 authored by Katarzyna Kobierska's avatar Katarzyna Kobierska
Browse files

Move builds content list to partial

parent e9dbcd8a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -15,23 +15,4 @@
#{(@scope || 'all').capitalize} builds
 
%ul.content-list.builds-content-list
- if @builds.blank?
%li
.nothing-here-block No builds to show
- else
.table-holder
%table.table.builds
%thead
%tr
%th Status
%th Commit
%th Project
%th Runner
%th Name
%th
%th
- @builds.each do |build|
= render "admin/builds/build", build: build
= paginate @builds, theme: 'gitlab'
= render "projects/builds/content_list", builds: @builds, project: nil
- if project.nil?
- if builds.blank?
%li
.nothing-here-block No builds to show
- else
.table-holder
%table.table.builds
%thead
%tr
%th Status
%th Commit
%th Project
%th Runner
%th Name
%th
%th
- builds.each do |build|
= render "admin/builds/build", build: build
= paginate builds, theme: 'gitlab'
- if project.present?
- if builds.blank?
%li
.nothing-here-block No builds to show
- else
.table-holder
%table.table.builds
%thead
%tr
%th Status
%th Commit
%th Stage
%th Name
%th
- if project.build_coverage_enabled?
%th Coverage
%th
= render builds, commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: project.build_coverage_enabled?
= paginate builds, theme: 'gitlab'
Loading
Loading
@@ -20,23 +20,4 @@
%span CI Lint
 
%ul.content-list.builds-content-list
- if @builds.blank?
%li
.nothing-here-block No builds to show
- else
.table-holder
%table.table.builds
%thead
%tr
%th Status
%th Commit
%th Stage
%th Name
%th
- if @project.build_coverage_enabled?
%th Coverage
%th
= render @builds, commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: @project.build_coverage_enabled?
= paginate @builds, theme: 'gitlab'
= render "content_list", builds: @builds, project: @project
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment