travis-web/assets/scripts/app/controllers/job.coffee
2015-01-29 13:39:06 +01:00

19 lines
480 B
CoffeeScript

githubCommit = Travis.Urls.githubCommit
Controller = Ember.Controller.extend
needs: ['repo']
repoBinding: 'controllers.repo.repo'
commitBinding: 'job.commit'
annotationsBinding: 'job.annotations'
currentUserBinding: 'controllers.repo.currentUser'
tabBinding: 'controllers.repo.tab'
currentItemBinding: 'job'
urlGithubCommit: (->
githubCommit(@get('repo.slug'), @get('commit.sha'))
).property('repo.slug', 'commit.sha')
Travis.JobController = Controller