Drop image and add status for Annotation

This commit is contained in:
Hiro Asari 2014-01-24 10:32:11 -05:00
parent 9e2a8cb218
commit 715b1a2d36
2 changed files with 2 additions and 6 deletions

View File

@ -4,7 +4,7 @@ require 'travis/model'
jobId: Ember.attr('number')
description: Ember.attr('string')
url: Ember.attr('string')
image: Ember.attr('object')
status: Ember.attr('string')
providerName: Ember.attr('string')
job: Ember.belongsTo('Travis.Job')

View File

@ -2,11 +2,7 @@
{{#each annotation in view.annotations}}
<div class="annotation">
<a {{bindAttr href="annotation.url"}}>
{{#if annotation.image}}
<img {{bindAttr src="annotation.image.url" alt="annotation.image.alt"}}>
{{else}}
{{annotation.providerName}}
{{/if}}
{{annotation.status}} {{annotation.providerName}}
</a>:
{{annotation.description}}
</div>