travis-web/assets/scripts/app/controllers/builds/item.coffee
2015-01-30 09:10:48 +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