24 lines
619 B
CoffeeScript
24 lines
619 B
CoffeeScript
`import Ember from 'ember'`
|
|
`import { githubCommit } from 'travis/utils/urls'`
|
|
|
|
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')
|
|
|
|
jobStateDidChange: (->
|
|
@send('faviconStateDidChange', @get('job.state'))
|
|
).observes('job.state')
|
|
|
|
`export default Controller`
|