Fix event type display on the jobs page.

This commit is contained in:
Mathias Meyer 2014-12-12 11:41:54 +01:00
parent 806fd899bc
commit aef53f4554
2 changed files with 1 additions and 6 deletions

View File

@ -22,11 +22,6 @@ require 'travis/model'
_config: Ember.attr('object', key: 'config')
# TODO add eventType to the api for api build requests
eventType: (->
if @get('pullRequest') then 'pull_request' else 'push'
).property('pull_request')
log: ( ->
@set('isLogAccessed', true)
Travis.Log.create(job: this)

View File

@ -2,7 +2,7 @@
<div {{bind-attr class="view.color"}}>
<div id="new-summary">
<div class="request-kind">
<div {{bind-attr class=":kind-icon build.eventType"}}>
<div {{bind-attr class=":kind-icon job.build.eventType"}}>
</div>
</div>
<div class="right">