attempting to add job event types to jobs tab
This commit is contained in:
parent
90c8997379
commit
806fd899bc
|
@ -22,6 +22,11 @@ require 'travis/model'
|
||||||
|
|
||||||
_config: Ember.attr('object', key: 'config')
|
_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: ( ->
|
log: ( ->
|
||||||
@set('isLogAccessed', true)
|
@set('isLogAccessed', true)
|
||||||
Travis.Log.create(job: this)
|
Travis.Log.create(job: this)
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
{{#if job.isLoaded}}
|
{{#if job.isLoaded}}
|
||||||
<div {{bind-attr class="view.color"}}>
|
<div {{bind-attr class="view.color"}}>
|
||||||
<div id="new-summary">
|
<div id="new-summary">
|
||||||
|
<div class="request-kind">
|
||||||
|
<div {{bind-attr class=":kind-icon build.eventType"}}>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="build-status">
|
<div class="build-status">
|
||||||
{{#link-to "job" repo job}}#{{job.number}} {{job.state}}{{/link-to}}
|
{{#link-to "job" repo job}}#{{job.number}} {{job.state}}{{/link-to}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user