Extract annotations view
This commit is contained in:
parent
c912634dd0
commit
31cb6ce98a
8
assets/scripts/app/templates/annotations/list.hbs
Normal file
8
assets/scripts/app/templates/annotations/list.hbs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<div id="annotations">
|
||||||
|
{{#each annotation in view.annotations}}
|
||||||
|
<div class="annotation">
|
||||||
|
<a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>:
|
||||||
|
{{annotation.description}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
|
@ -54,11 +54,7 @@
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
{{#unless build.isMatrix}}
|
{{#unless build.isMatrix}}
|
||||||
<div id="annotations">
|
{{view Travis.AnnotationsView annotationsBinding="build.jobs.firstObject.annotations"}}
|
||||||
{{#each annotation in build.jobs.firstObject.annotations}}
|
|
||||||
<div class="annotation"><a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>: {{annotation.description}}</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if build.isMatrix}}
|
{{#if build.isMatrix}}
|
||||||
|
|
|
@ -48,11 +48,7 @@
|
||||||
<dd class="config">{{formatConfig job.config}}</dd>
|
<dd class="config">{{formatConfig job.config}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div id="annotations">
|
{{view Travis.AnnotationsView annotationsBinding="view.annotations"}}
|
||||||
{{#each annotation in view.annotations}}
|
|
||||||
<div class="annotation"><a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>: {{annotation.description}}</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{view Travis.LogView jobBinding="job"}}
|
{{view Travis.LogView jobBinding="job"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -25,6 +25,7 @@ Travis.GettingStartedView = Travis.View.extend
|
||||||
templateName: 'no_owned_repos'
|
templateName: 'no_owned_repos'
|
||||||
|
|
||||||
require 'views/accounts'
|
require 'views/accounts'
|
||||||
|
require 'views/annotation'
|
||||||
require 'views/application'
|
require 'views/application'
|
||||||
require 'views/build'
|
require 'views/build'
|
||||||
require 'views/events'
|
require 'views/events'
|
||||||
|
|
4
assets/scripts/app/views/annotation.coffee
Normal file
4
assets/scripts/app/views/annotation.coffee
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Travis.reopen
|
||||||
|
AnnotationsView: Travis.View.extend
|
||||||
|
templateName: 'annotations/list'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user