detect build.linux in jobs.queue and display notice
This commit is contained in:
parent
ce2397dd9a
commit
e42a4088e7
|
@ -143,4 +143,9 @@ Job = Model.extend DurationCalculations,
|
||||||
"#{@get('repo.slug')} ##{@get('number')}"
|
"#{@get('repo.slug')} ##{@get('number')}"
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
|
isLegacyInfrastructure: (->
|
||||||
|
if @get('queue') == 'builds.linux'
|
||||||
|
true
|
||||||
|
).property('queue')
|
||||||
|
|
||||||
`export default Job`
|
`export default Job`
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
{{#if view.job.notStarted}}
|
{{#if view.job.notStarted}}
|
||||||
<div class="log-notice">Hang tight, the log cannot be shown until the build has started.</div>
|
<div class="log-notice">Hang tight, the log cannot be shown until the build has started.</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{#if view.job.isLegacyInfrastructure}}
|
||||||
|
<p class="">This job runs on our legacy infrastructure. Read more about upgrading <a href="#" title="">in our docs</a></p>
|
||||||
|
{{/if}}
|
||||||
<div {{bind-attr class="view.job.notStarted:hidden"}}>
|
<div {{bind-attr class="view.job.notStarted:hidden"}}>
|
||||||
<menu class="log-header">
|
<menu class="log-header">
|
||||||
{{#if view.canRemoveLog}}
|
{{#if view.canRemoveLog}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user