update failing jobs text and width
This commit is contained in:
parent
b37dc28d99
commit
def6f2b2c0
|
@ -32,7 +32,7 @@ $tooltip-grey: #6A6C6D
|
||||||
bottom: -2.5em
|
bottom: -2.5em
|
||||||
|
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
width: 25rem
|
width: 18rem
|
||||||
|
|
||||||
.tooltip-inner
|
.tooltip-inner
|
||||||
height: 4.1em
|
height: 4.1em
|
||||||
|
|
85
app/templates/jobs.hbs
Normal file
85
app/templates/jobs.hbs
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
{{#if view.jobs.length}}
|
||||||
|
<section {{bind-attr id=view.jobTableId}}>
|
||||||
|
|
||||||
|
{{#if view.required}}
|
||||||
|
<h2 class="build-title">Build Jobs</h2>
|
||||||
|
{{else}}
|
||||||
|
<h2 class="build-title">Allowed Failures
|
||||||
|
<span class="icon icon--question"></span>
|
||||||
|
<div class="tooltip">
|
||||||
|
<p class="tooltip-inner">These are jobs are allowed to fail, without failing your entire build.</p>
|
||||||
|
</div>
|
||||||
|
</h2>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#each job in view.jobs}}
|
||||||
|
{{#view 'jobs-item' context=job}}
|
||||||
|
<div {{bind-attr class=":tile :tile--jobs :row job.state" }}>
|
||||||
|
{{#if job.config}}
|
||||||
|
{{#link-to "job" job.repo job}}
|
||||||
|
|
||||||
|
<div class="tile-status tile-status--job">
|
||||||
|
<span {{bind-attr class=":icon :icon--job job.state"}}></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="job-id jobs-item build-status">
|
||||||
|
<span class="icon icon--hash-dark"></span>
|
||||||
|
{{#if job.id}}
|
||||||
|
{{#if job.repo.slug}}
|
||||||
|
{{number}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p {{bind-attr class=":job-os :jobs-item :build-os config.os"}}>
|
||||||
|
<span {{bind-attr class=":icon config.os"}}></span>
|
||||||
|
{{!-- {{config.os}} --}}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{{#if view.languages}}
|
||||||
|
<p class="job-lang jobs-item build-lang">
|
||||||
|
<span class="icon icon--lang"></span>
|
||||||
|
{{view.languages}}
|
||||||
|
</p>
|
||||||
|
{{else}}
|
||||||
|
<p class="job-lang jobs-item build-lang is-empty">
|
||||||
|
<span class="icon icon--lang"></span>
|
||||||
|
no language set
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="job-anchor jobs-item">
|
||||||
|
{{#if config.env}}
|
||||||
|
<p class="job-env jobs-item build-env">
|
||||||
|
<span class="icon icon--env"></span>
|
||||||
|
{{config.env}}
|
||||||
|
</p>
|
||||||
|
{{else}}
|
||||||
|
<p class="job-env jobs-item build-env is-empty">
|
||||||
|
<span class="icon icon--env"></span>
|
||||||
|
no environment variables set
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<p class="job-duration jobs-item" {{bind-attr title="startedAt"}}>
|
||||||
|
<span class="icon icon--clock-dark"></span>
|
||||||
|
{{format-duration duration}}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- <p class="" {{bind-attr title="formattedFinishedAt"}}>
|
||||||
|
<span class="icon icon--cal"></span>
|
||||||
|
{{format-time finishedAt}}
|
||||||
|
</p> --}}
|
||||||
|
|
||||||
|
{{/link-to}}
|
||||||
|
{{else}}
|
||||||
|
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/view}}
|
||||||
|
{{!-- {{job.configKeys}} --}}
|
||||||
|
{{/each}}
|
||||||
|
</section>
|
||||||
|
{{/if}}
|
Loading…
Reference in New Issue
Block a user