travis-web/assets/scripts/app/controllers/build.coffee
Hiro Asari 4d83e1a4cb Remove urlAuthor and urlCommitter fields
No longer in views, so no need to keep these.
2013-12-31 23:21:10 -05:00

18 lines
518 B
CoffeeScript

Travis.BuildController = Ember.Controller.extend
needs: ['repo']
repoBinding: 'controllers.repo.repo'
commitBinding: 'build.commit'
lineNumberBinding: 'controllers.repo.lineNumber'
currentUserBinding: 'controllers.repo.currentUser'
tabBinding: 'controllers.repo.tab'
currentItemBinding: 'build'
loading: (->
@get('build.isLoading')
).property('build.isLoading')
urlGithubCommit: (->
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
).property('repo.slug', 'commit.sha')