
This part needs further refactoring, but for now I just fixed log view to teardown and setup things properly in all cases something changes (when element is inserted or removed, but also when log object is changed).
15 lines
423 B
CoffeeScript
15 lines
423 B
CoffeeScript
Travis.JobController = Em.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: (->
|
|
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
|
).property('repo.slug', 'commit.sha')
|