Drop image and add status for Annotation
This commit is contained in:
parent
9e2a8cb218
commit
715b1a2d36
|
@ -4,7 +4,7 @@ require 'travis/model'
|
||||||
jobId: Ember.attr('number')
|
jobId: Ember.attr('number')
|
||||||
description: Ember.attr('string')
|
description: Ember.attr('string')
|
||||||
url: Ember.attr('string')
|
url: Ember.attr('string')
|
||||||
image: Ember.attr('object')
|
status: Ember.attr('string')
|
||||||
providerName: Ember.attr('string')
|
providerName: Ember.attr('string')
|
||||||
|
|
||||||
job: Ember.belongsTo('Travis.Job')
|
job: Ember.belongsTo('Travis.Job')
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
{{#each annotation in view.annotations}}
|
{{#each annotation in view.annotations}}
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
<a {{bindAttr href="annotation.url"}}>
|
<a {{bindAttr href="annotation.url"}}>
|
||||||
{{#if annotation.image}}
|
{{annotation.status}} {{annotation.providerName}}
|
||||||
<img {{bindAttr src="annotation.image.url" alt="annotation.image.alt"}}>
|
|
||||||
{{else}}
|
|
||||||
{{annotation.providerName}}
|
|
||||||
{{/if}}
|
|
||||||
</a>:
|
</a>:
|
||||||
{{annotation.description}}
|
{{annotation.description}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user