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

Liken admin and project builds views to each other

parent 21976091
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -45,7 +45,10 @@
.light none
 
%td
#{build.stage} / #{build.name}
#{build.stage}
%td
#{build.name}
 
%td
- if build.duration
Loading
Loading
@@ -58,8 +61,8 @@
= icon("calendar")
%span #{time_ago_with_tooltip(build.finished_at)}
 
- if defined?(coverage) && coverage
%td.coverage
%td.coverage
- if defined?(coverage) && coverage
- if build.try(:coverage)
#{build.coverage}%
 
Loading
Loading
- 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
- if builds.blank?
%li
.nothing-here-block No builds to show
- else
.table-holder
%table.table.builds
%thead
%tr
%th Status
%th Commit
- if project.nil?
%th Project
%th Runner
%th Name
%th
%th
%th Stage
%th Name
%th
%th
- if project.present?
- if @project.build_coverage_enabled?
%th Coverage
 
- if project.nil?
- 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
- else
= render builds, commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: project.build_coverage_enabled?
 
= paginate builds, theme: 'gitlab'
= paginate builds, theme: 'gitlab'
Loading
Loading
@@ -52,12 +52,11 @@
- else
.light none
 
- if defined?(stage) && stage
%td
= build.stage
%td
#{build.stage}
 
%td
= build.name
#{build.name}
 
%td
- if build.duration
Loading
Loading
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