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>
|
||||
|
||||
{{#unless build.isMatrix}}
|
||||
<div id="annotations">
|
||||
{{#each annotation in build.jobs.firstObject.annotations}}
|
||||
<div class="annotation"><a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>: {{annotation.description}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{view Travis.AnnotationsView annotationsBinding="build.jobs.firstObject.annotations"}}
|
||||
{{/unless}}
|
||||
|
||||
{{#if build.isMatrix}}
|
||||
|
|
|
@ -48,11 +48,7 @@
|
|||
<dd class="config">{{formatConfig job.config}}</dd>
|
||||
</dl>
|
||||
|
||||
<div id="annotations">
|
||||
{{#each annotation in view.annotations}}
|
||||
<div class="annotation"><a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>: {{annotation.description}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{view Travis.AnnotationsView annotationsBinding="view.annotations"}}
|
||||
|
||||
{{view Travis.LogView jobBinding="job"}}
|
||||
</div>
|
||||
|
|
|
@ -25,6 +25,7 @@ Travis.GettingStartedView = Travis.View.extend
|
|||
templateName: 'no_owned_repos'
|
||||
|
||||
require 'views/accounts'
|
||||
require 'views/annotation'
|
||||
require 'views/application'
|
||||
require 'views/build'
|
||||
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