travis-web/assets/scripts/app/controllers/builds-item.coffee
2015-02-02 16:21:03 +01:00

15 lines
399 B
CoffeeScript

colorForState = Travis.Helpers.colorForState
GithubUrlProperties = Travis.GithubUrlProperties
Controller = Ember.ObjectController.extend(GithubUrlProperties,
needs: ['builds']
isPullRequestsListBinding: 'controllers.builds.isPullRequestsList'
buildBinding: 'content'
color: (->
colorForState(@get('build.state'))
).property('build.state')
)
Travis.BuildsItemController = Controller