Prepare BuildView for ember-cli

This commit is contained in:
Piotr Sarnacki 2015-01-15 17:08:28 +01:00
parent c205529295
commit f26d3edcc5

View File

@ -1,9 +1,14 @@
Travis.reopen
BuildView: Travis.View.extend
require 'helpers/helpers'
colorForState = Travis.Helpers.colorForState
View = Travis.View.extend
classNameBindings: ['color', 'loading']
buildBinding: 'controller.build'
loadingBinding: 'controller.loading'
color: (->
Travis.Helpers.colorForState(@get('build.state'))
colorForState(@get('build.state'))
).property('build.state')
Travis.BuildView = View