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

Improve code

parent 0c14eaa6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -45,10 +45,10 @@
.light none
 
%td
#{build.stage}
= build.stage
 
%td
#{build.name}
= build.name
 
%td
- if build.duration
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
@@ -53,10 +53,11 @@
.light none
 
%td
#{build.stage}
- if defined?(stage) && stage
= 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