From 451894bcecfb395d77616ff82428fe7830181818 Mon Sep 17 00:00:00 2001 From: Mathias Meyer Date: Sun, 8 Sep 2013 10:11:20 +0200 Subject: [PATCH] Pull some bindings into build and job controllers. --- assets/scripts/app/controllers/build.coffee | 2 ++ assets/scripts/app/controllers/job.coffee | 2 ++ assets/scripts/app/views/repo/show.coffee | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/scripts/app/controllers/build.coffee b/assets/scripts/app/controllers/build.coffee index 493b710a..2446117b 100644 --- a/assets/scripts/app/controllers/build.coffee +++ b/assets/scripts/app/controllers/build.coffee @@ -3,6 +3,8 @@ Travis.BuildController = Ember.Controller.extend repoBinding: 'controllers.repo.repo' commitBinding: 'build.commit' lineNumberBinding: 'controllers.repo.lineNumber' + currentUserBinding: 'controllers.repo.currentUser' + tabBinding: 'controllers.repo.tab' currentItemBinding: 'build' diff --git a/assets/scripts/app/controllers/job.coffee b/assets/scripts/app/controllers/job.coffee index 3f94343c..417e3eb3 100644 --- a/assets/scripts/app/controllers/job.coffee +++ b/assets/scripts/app/controllers/job.coffee @@ -5,6 +5,8 @@ Travis.JobController = Em.Controller.extend repoBinding: 'controllers.repo.repo' commitBinding: 'job.commit' lineNumberBinding: 'controllers.repo.lineNumber' + currentUserBinding: 'controllers.repo.currentUser' + tabBinding: 'controllers.repo.tab' currentItemBinding: 'job' diff --git a/assets/scripts/app/views/repo/show.coffee b/assets/scripts/app/views/repo/show.coffee index cf10ed16..8fc3b8fa 100644 --- a/assets/scripts/app/views/repo/show.coffee +++ b/assets/scripts/app/views/repo/show.coffee @@ -119,7 +119,7 @@ Travis.reopen buildBinding: 'controller.build' jobBinding: 'controller.job' tabBinding: 'controller.controllers.repo.tab' - currentUserBinding: 'controller.controllers.repo.currentUser' + currentUserBinding: 'controller.currentUser' requeue: -> @get('build').requeue()