start new build job view
This commit is contained in:
parent
b6b7f092a6
commit
c8fad34c54
|
@ -4,7 +4,7 @@ $font-size-sm: 14px
|
||||||
$line-height-m: 1.3
|
$line-height-m: 1.3
|
||||||
|
|
||||||
// colors
|
// colors
|
||||||
$teal1: #5FA5A4
|
$teal1: #5BA5A4
|
||||||
$teal2: #63A4A3
|
$teal2: #63A4A3
|
||||||
|
|
||||||
$blue-grey: #404650
|
$blue-grey: #404650
|
||||||
|
@ -68,7 +68,7 @@ $log-header-bg: #444444
|
||||||
|
|
||||||
// new build header
|
// new build header
|
||||||
$font-size-xxl: 30px
|
$font-size-xxl: 30px
|
||||||
$grey1: #A5ACAD
|
$grey1: #A6ADAD
|
||||||
$grey2: #969496
|
$grey2: #969496
|
||||||
$grey3: #808080
|
$grey3: #808080
|
||||||
$grey4: #e6e8e8
|
$grey4: #e6e8e8
|
||||||
|
|
|
@ -123,3 +123,7 @@
|
||||||
height: 1.05em
|
height: 1.05em
|
||||||
.icon--codeclimate
|
.icon--codeclimate
|
||||||
width: 1.2em
|
width: 1.2em
|
||||||
|
|
||||||
|
.build-title
|
||||||
|
color: $grey1
|
||||||
|
font-size: $font-size-sm
|
||||||
|
|
|
@ -85,9 +85,11 @@
|
||||||
|
|
||||||
.icon--env
|
.icon--env
|
||||||
background-image: inline-image('svg/icon-environment.svg')
|
background-image: inline-image('svg/icon-environment.svg')
|
||||||
.icon--cross-red
|
.icon--cross-red,
|
||||||
|
.icon--job.failed
|
||||||
background-image: inline-image('svg/icon-job-failed.svg')
|
background-image: inline-image('svg/icon-job-failed.svg')
|
||||||
.icon--check-green
|
.icon--check-green,
|
||||||
|
.icon--job.passed
|
||||||
background-image: inline-image('svg/icon-job-passed.svg')
|
background-image: inline-image('svg/icon-job-passed.svg')
|
||||||
.icon--lang
|
.icon--lang
|
||||||
background-image: inline-image('svg/icon-language.svg')
|
background-image: inline-image('svg/icon-language.svg')
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
p
|
p
|
||||||
margin: 0
|
margin: 0
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
.icon
|
||||||
|
vertical-align: middle
|
||||||
|
.icon--lang
|
||||||
|
width: 1.2em
|
||||||
|
height: 0.9em
|
||||||
|
|
||||||
&.started,
|
&.started,
|
||||||
&.created
|
&.created
|
||||||
|
@ -137,3 +142,25 @@
|
||||||
.tile-additional
|
.tile-additional
|
||||||
@media #{$xlarge-up}
|
@media #{$xlarge-up}
|
||||||
@include grid-column(4)
|
@include grid-column(4)
|
||||||
|
|
||||||
|
// job matrix
|
||||||
|
.tile--jobs
|
||||||
|
margin-bottom: 0.8em
|
||||||
|
.tile-main
|
||||||
|
.icon
|
||||||
|
margin-right: .3em
|
||||||
|
p
|
||||||
|
padding: .1em 0
|
||||||
|
@media #{$medium-up}
|
||||||
|
white-space: nowrap
|
||||||
|
overflow: hidden
|
||||||
|
border-right: solid 1px $grey4
|
||||||
|
&:after
|
||||||
|
@include fadeOut(right, -90deg, $cream-light)
|
||||||
|
@media #{$xlarge-up}
|
||||||
|
@include grid-column(5)
|
||||||
|
.tile-additional
|
||||||
|
p
|
||||||
|
padding: 1em 0
|
||||||
|
@media #{$xlarge-up}
|
||||||
|
@include grid-column(7)
|
||||||
|
|
|
@ -1,47 +1,53 @@
|
||||||
{{#if view.jobs.length}}
|
{{#if view.jobs.length}}
|
||||||
<table {{bind-attr id=view.jobTableId}} class="list">
|
<section {{bind-attr id=view.jobTableId}}>
|
||||||
|
|
||||||
{{#if view.required}}
|
{{#if view.required}}
|
||||||
<caption>
|
<h2 class="build-title">Build Jobs</h2>
|
||||||
Build Matrix
|
|
||||||
</caption>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<caption>
|
<h2 class="build-title">Allowed Failures
|
||||||
Allowed Failures
|
<a title="What's this?" class="open-popup" name="help-allowed_failures" {{action "openHelpPopup" target=view}}>
|
||||||
<a title="What's this?" class="help open-popup"
|
<span class="icon icon--env"></span>
|
||||||
name="help-allowed_failures" {{action "openHelpPopup" target=view}}></a>
|
</a>
|
||||||
</caption>
|
</h2>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<thead>
|
|
||||||
<tr>
|
{{#each job in view.jobs}}
|
||||||
{{#each key in view.build.configKeys}}
|
{{#view 'jobs-item' context=job}}
|
||||||
<th>{{key}}</th>
|
<div class="tile tile--small tile--jobs row">
|
||||||
{{/each}}
|
<div class="tile-status tile-status--job">
|
||||||
</tr>
|
<span {{bind-attr class=":icon :icon--job job.state"}}></span>
|
||||||
</thead>
|
</div>
|
||||||
<tbody>
|
|
||||||
{{#each job in view.jobs}}
|
<div class="tile-main medium-4 columns">
|
||||||
{{#view 'jobs-item' context=job}}
|
<p class="build-env"><span class="icon icon--env"></span>insert env</p>
|
||||||
<td class="number">
|
<p class="build-lang"><span class="icon icon--lang"></span>insert language</p>
|
||||||
<span class="status"></span>
|
</div>
|
||||||
{{#if job.id}}
|
|
||||||
{{#if job.repo.slug}}
|
<div class="tile-additional medium-8 columns end">
|
||||||
{{#link-to "job" repo job}}{{number}}{{/link-to}}
|
<p class="columns small-6 medium-2">
|
||||||
|
<span class="icon icon--hash"></span>
|
||||||
|
{{#if job.id}}
|
||||||
|
{{#if job.repo.slug}}
|
||||||
|
{{#link-to "job" repo job}}{{number}}{{/link-to}}
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
</p>
|
||||||
</td>
|
<p class="columns small-6 medium-4" {{bind-attr title="startedAt"}}>
|
||||||
<td class="duration" {{bind-attr title="startedAt"}}>
|
<span class="icon icon--clock"></span>
|
||||||
{{format-duration duration}}
|
{{format-duration duration}}
|
||||||
</td>
|
</p>
|
||||||
<td class="finished_at timeago" {{bind-attr title="formattedFinishedAt"}}>
|
<p class="columns small-6 medium-5" {{bind-attr title="formattedFinishedAt"}}>
|
||||||
{{format-time finishedAt}}
|
<span class="icon icon--cal"></span>
|
||||||
</td>
|
{{format-time finishedAt}}
|
||||||
{{#each value in configValues}}
|
</p>
|
||||||
<td>{{value}}</td>
|
<p class="columns small-6 medium-1"><span {{bind-attr class=":icon :icon--linux configValues.[2]"}}></span>{{configValues.[2]}}</p>
|
||||||
{{/each}}
|
</div>
|
||||||
{{/view}}
|
</div>
|
||||||
{{/each}}
|
|
||||||
</tbody>
|
{{/view}}
|
||||||
</table>
|
{{job.configKeys}}
|
||||||
|
{{/each}}
|
||||||
|
</section>
|
||||||
|
|
||||||
{{#unless view.required}}
|
{{#unless view.required}}
|
||||||
<div id="help-allowed_failures" class="popup">
|
<div id="help-allowed_failures" class="popup">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
`import { colorForState } from 'travis/utils/helpers'`
|
`import { colorForState } from 'travis/utils/helpers'`
|
||||||
|
|
||||||
View = BasicView.extend
|
View = BasicView.extend
|
||||||
tagName: 'tr'
|
tagName: 'div'
|
||||||
classNameBindings: ['color']
|
classNameBindings: ['color']
|
||||||
repoBinding: 'context.repo'
|
repoBinding: 'context.repo'
|
||||||
jobBinding: 'context'
|
jobBinding: 'context'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user