Commit 0c14eaa6 authored by Katarzyna Kobierska's avatar Katarzyna Kobierska

Liken admin and project builds views to each other

parent 21976091
...@@ -45,7 +45,10 @@ ...@@ -45,7 +45,10 @@
.light none .light none
%td %td
#{build.stage} / #{build.name} #{build.stage}
%td
#{build.name}
%td %td
- if build.duration - if build.duration
...@@ -58,8 +61,8 @@ ...@@ -58,8 +61,8 @@
= icon("calendar") = icon("calendar")
%span #{time_ago_with_tooltip(build.finished_at)} %span #{time_ago_with_tooltip(build.finished_at)}
- if defined?(coverage) && coverage
%td.coverage %td.coverage
- if defined?(coverage) && coverage
- if build.try(:coverage) - if build.try(:coverage)
#{build.coverage}% #{build.coverage}%
......
- if project.nil? - if builds.blank?
- if builds.blank?
%li %li
.nothing-here-block No builds to show .nothing-here-block No builds to show
- else - else
.table-holder .table-holder
%table.table.builds %table.table.builds
%thead %thead
%tr %tr
%th Status %th Status
%th Commit %th Commit
- if project.nil?
%th Project %th Project
%th Runner %th Runner
%th Stage
%th Name %th Name
%th %th
%th %th
- if project.present?
- if @project.build_coverage_enabled?
%th Coverage
- if project.nil?
- builds.each do |build| - builds.each do |build|
= render "admin/builds/build", build: 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 - 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? = 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'
...@@ -52,12 +52,11 @@ ...@@ -52,12 +52,11 @@
- else - else
.light none .light none
- if defined?(stage) && stage
%td %td
= build.stage #{build.stage}
%td %td
= build.name #{build.name}
%td %td
- if build.duration - if build.duration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment