Commit 4fa69410 authored by Katarzyna Kobierska's avatar Katarzyna Kobierska

Improve code

parent 0c14eaa6
......@@ -45,10 +45,10 @@
.light none
%td
#{build.stage}
= build.stage
%td
#{build.name}
= build.name
%td
- if build.duration
......
......@@ -15,4 +15,4 @@
#{(@scope || 'all').capitalize} builds
%ul.content-list.builds-content-list
= render "projects/builds/content_list", builds: @builds, project: nil
= render "projects/builds/table", builds: @builds, project: nil, admin: true
......@@ -8,19 +8,19 @@
%tr
%th Status
%th Commit
- if project.nil?
- if admin
%th Project
%th Runner
%th Stage
%th Name
%th
%th
- if project.present?
- if @project.build_coverage_enabled?
- unless admin
- if project.build_coverage_enabled?
%th Coverage
- if project.nil?
- if admin
- builds.each do |build|
= render "admin/builds/build", build: build
- else
......
......@@ -20,4 +20,4 @@
%span CI Lint
%ul.content-list.builds-content-list
= render "content_list", builds: @builds, project: @project
= render "table", builds: @builds, project: @project, admin: false
......@@ -53,10 +53,11 @@
.light none
%td
#{build.stage}
- if defined?(stage) && stage
= build.stage
%td
#{build.name}
= build.name
%td
- 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