23 lines
609 B
CoffeeScript
23 lines
609 B
CoffeeScript
Travis.JobController = Em.Controller.extend
|
|
needs: ['repo', 'log']
|
|
|
|
jobBinding: 'controllers.repo.job'
|
|
repoBinding: 'controllers.repo.repo'
|
|
commitBinding: 'job.commit'
|
|
|
|
urlGithubCommit: (->
|
|
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
|
).property('repo.slug', 'commit.sha')
|
|
|
|
urlAuthor: (->
|
|
Travis.Urls.email(@get('commit.authorEmail'))
|
|
).property('commit.authorEmail')
|
|
|
|
urlCommitter: (->
|
|
Travis.Urls.email(@get('commit.committerEmail'))
|
|
).property('commit.committerEmail')
|
|
|
|
hasLoaded: (->
|
|
@set('controllers.log.job', @get('job'))
|
|
).observes('job.id')
|